38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="menu_name">Examples Menu</xsl:variable>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync enctype="application/x-www-form-urlencoded" method="get">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <input name="query" type="text" size="20" value=""/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <input name="submit" type="submit" value="Search ..."/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync href="{$href_base}docs.html">Developer Menu</a></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync href="{$href_base}html/index.html">API Menu</a></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li><a href="#{@name}"><xsl:value-of select="@name"/> Examples</a></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li><a href="{$href_base}guidelines.html">XML Guidelines</a></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="header" select="substring-before(substring-after(., '/'), '>')"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="doc" select="concat('/html/libxml-', $header, 'tml')"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li><a href="{$doc}"><xsl:value-of select="."/></a></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="header" select="concat(@file, '.h')"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="doc" select="concat('/html/libxml-', @file, '.html#', $name)"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li> line <xsl:value-of select="@line"/>: Type <a href="{$doc}"><xsl:value-of select="$name"/></a> from <xsl:value-of select="$header"/></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="header" select="concat(@file, '.h')"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="doc" select="concat('/html/libxml-', @file, '.html#', $name)"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li> line <xsl:value-of select="@line"/>: Function <a href="{$doc}"><xsl:value-of select="$name"/></a> from <xsl:value-of select="$header"/></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="header" select="concat(@file, '.h')"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="doc" select="concat('/html/libxml-', @file, '.html#', $name)"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li> line <xsl:value-of select="@line"/>: Macro <a href="{$doc}"><xsl:value-of select="$name"/></a> from <xsl:value-of select="$header"/></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="filename" select="string(@filename)"/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <h3><a name="{$filename}" href="{$filename}"><xsl:value-of select="$filename"/></a>: <xsl:value-of select="synopsis"/></h3>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li><p> <a href="#{@name}"><xsl:value-of select="@name"/></a> :</p>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <li> <a href="#{$filename}"><xsl:value-of select="$filename"/></a>: <xsl:value-of select="/examples/example[@filename = $filename]/synopsis"/></li>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <p> The examples are stored per section depending on the main focus
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync of the example:</p>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <p> Getting the compilation options and libraries dependancies needed
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncto generate binaries from the examples is best done on Linux/Unix by using
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncthe xml2-config script which should have been installed as part of <i>make
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsyncinstall</i> step or when installing the libxml2 development package:</p>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync<pre>gcc -o example `xml2-config --cflags` example.c `xml2-config --libs`</pre>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <h2> <a name="{$section}"></a><xsl:value-of select="$section"/> Examples</h2>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:apply-templates select='/examples/example[section = $section]'/>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:variable name="title">Libxml2 set of examples</xsl:variable>
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <xsl:document href="index.html" method="xml" encoding="ISO-8859-1"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <table border="0" cellpadding="4" cellspacing="0" width="100%" align="center">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <table border="0" cellspacing="0" cellpadding="2" width="100%">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <table border="0" cellspacing="0" cellpadding="1" width="100%">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000">
38ae7e4efe803ea78b6499cd05a394db32623e41vboxsync <table border="0" cellpadding="3" cellspacing="1" width="100%">