diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 24e357ea..308dda23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -280,6 +280,8 @@ pages:
script:
- mkdir -p public
- cp -r doc/devhelp doc/tutorial doc/xmllint.html doc/xmlcatalog_man.html public
+ - mkdir -p public/examples
+ - cp doc/examples/*.html doc/examples/*.c public/examples
artifacts:
paths:
- public
diff --git a/doc/examples/examples.xsl b/doc/examples/examples.xsl
index bc93a3d7..b3da2eaf 100644
--- a/doc/examples/examples.xsl
+++ b/doc/examples/examples.xsl
@@ -1,58 +1,32 @@
-
-
-
-
|
-
|
|
gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`+
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.
+Includes:
+Uses:
+Usage:
+io1
+Author: Daniel Veillard
+Demonstrate the use of xmlDocDumpMemory to output document to a character buffer
+Includes:
+Uses:
+Usage:
+io2
+Author: John Fleck
+Demonstrate the use of xmlReadFile() to read an XML file into a tree and xmlFreeDoc() to free the resulting tree
+Includes:
+Uses:
+Usage:
+parse1 test1.xml
+Author: Daniel Veillard
+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.
+Includes:
+Uses:
+Usage:
+parse2 test2.xml
+Author: Daniel Veillard
+Demonstrate the use of xmlReadMemory() to read an XML file into a tree and xmlFreeDoc() to free the resulting tree
+Includes:
+Uses:
+Usage:
+parse3
+Author: Daniel Veillard
+Demonstrate the use of xmlCreatePushParserCtxt() and xmlParseChunk() to read an XML file progressively into a tree and xmlFreeDoc() to free the resulting tree
+Includes:
+Uses:
+Usage:
+parse4 test3.xml
+Author: Daniel Veillard
+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.
+Includes:
+Uses:
+Usage:
+tree1 filename_or_URL
+Author: Dodji Seketeli
+Shows how to create document, nodes and dump it to stdout or file.
+Includes:
+Uses:
+Usage:
+tree2 <filename> -Default output: stdout
+Author: Lucas Brasilino <brasilino@recife.pe.gov.br>
+Shows how to evaluate XPath expression and register known namespaces in XPath context.
+Includes:
+Uses:
+Usage:
+xpath1 <xml-file> <xpath-expr> [<known-ns-list>]
+Author: Aleksey Sanin
+Shows how to make a full round-trip from a load/edit/save
+Includes:
+Uses:
+Usage:
+xpath2 <xml-file> <xpath-expr> <new-value>
+Author: Aleksey Sanin and Daniel Veillard
+Demonstrate the use of xmlReaderForFile() to parse an XML file and dump the information about the nodes found in the process. (Note that the XMLReader functions require libxml2 version later than 2.6.)
+Includes:
+Uses:
+Usage:
+reader1 <filename>
+Author: Daniel Veillard
+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.)
+Includes:
+Uses:
+Usage:
+reader2 <valid_xml_filename>
+Author: Daniel Veillard
+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.)
+Includes:
+Uses:
+Usage:
+reader3
+Author: Daniel Veillard
+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.)
+Includes:
+Uses:
+Usage:
+reader4 <filename> [ filename ... ]
+Author: Graham Bennett
+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.
+Includes:
+Uses:
+Usage:
+testWriter
+Author: Alfred Mickautsch
+ + diff --git a/doc/examples/index.py b/doc/examples/index.py index ed1df59c..fa8b3970 100755 --- a/doc/examples/index.py +++ b/doc/examples/index.py @@ -245,8 +245,8 @@ index.html: examples.xml examples.xsl endif install-data-local: - $(MKDIR_P) $(DESTDIR)$(HTML_DIR) - -$(INSTALL) -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR) + $(MKDIR_P) $(DESTDIR)$(HTML_DIR)/examples + -$(INSTALL) -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml $(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)/examples/ clean-local: test -f Makefile.am || rm -f test?.xml