From 6c4072e8507a70c7a3dbd80b8d032fabebad77c2 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 9 Oct 2002 16:39:40 +0000 Subject: updated the doc XSLT to add the search, added the search page, fixed a * doc/*: updated the doc XSLT to add the search, added the search page, fixed a link problem raised by Yves Pratter, regenerated Daniel --- doc/API.html | 9 +- doc/APIchunk0.html | 9 +- doc/APIchunk1.html | 9 +- doc/APIchunk2.html | 9 +- doc/APIchunk3.html | 9 +- doc/APIchunk4.html | 9 +- doc/APIchunk5.html | 9 +- doc/APIchunk6.html | 9 +- doc/APIconstructors.html | 9 +- doc/APIfiles.html | 11 +- doc/APIfunctions.html | 45 ++-- doc/APIsymbols.html | 10 +- doc/FAQ.html | 9 +- doc/bugs.html | 13 +- doc/contribs.html | 9 +- doc/docbook.html | 11 +- doc/docs.html | 9 +- doc/downloads.html | 9 +- doc/extensions.html | 9 +- doc/help.html | 9 +- doc/html/index.sgml | 3 +- doc/html/libxslt-xsltinternals.html | 227 +++++++++++++------- doc/index.html | 9 +- doc/internals.html | 9 +- doc/intro.html | 9 +- doc/libxslt-decl.txt | 12 +- doc/libxslt-refs.xml | 2 + doc/libxslt-sections.txt | 93 ++++---- doc/news.html | 9 +- doc/python.html | 9 +- doc/search.php | 410 ++++++++++++++++++++++++++++++++++++ doc/site.xsl | 5 + doc/xslt.html | 4 +- doc/xsltproc2.html | 9 +- 34 files changed, 836 insertions(+), 199 deletions(-) create mode 100644 doc/search.php (limited to 'doc') diff --git a/doc/API.html b/doc/API.html index 1afd5ef0..59852d01 100644 --- a/doc/API.html +++ b/doc/API.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline } - + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk0.html b/doc/APIchunk0.html index 656f01d6..532c7fe1 100644 --- a/doc/APIchunk0.html +++ b/doc/APIchunk0.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk1.html b/doc/APIchunk1.html index 481a35ee..3d7cfcbb 100644 --- a/doc/APIchunk1.html +++ b/doc/APIchunk1.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk2.html b/doc/APIchunk2.html index 9d023bf7..06d9ddc8 100644 --- a/doc/APIchunk2.html +++ b/doc/APIchunk2.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk3.html b/doc/APIchunk3.html index dd03a87b..eb7268bb 100644 --- a/doc/APIchunk3.html +++ b/doc/APIchunk3.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk4.html b/doc/APIchunk4.html index 88391782..6d352c5f 100644 --- a/doc/APIchunk4.html +++ b/doc/APIchunk4.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk5.html b/doc/APIchunk5.html index 9595cdee..692e3557 100644 --- a/doc/APIchunk5.html +++ b/doc/APIchunk5.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIchunk6.html b/doc/APIchunk6.html index ce0772c5..9cbb671a 100644 --- a/doc/APIchunk6.html +++ b/doc/APIchunk6.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIconstructors.html b/doc/APIconstructors.html index f6f4b0d4..032ed006 100644 --- a/doc/APIconstructors.html +++ b/doc/APIconstructors.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/APIfiles.html b/doc/APIfiles.html index d100ea55..b96d854d 100644 --- a/doc/APIfiles.html +++ b/doc/APIfiles.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
@@ -292,7 +297,7 @@ A:link, A:visited, A:active { text-decoration: underline } XSLT_PAT_NO_PRIORITYxsltRuntimeExtraxsltRuntimeExtraPtr -XSLT_RUNTIME_EXTRA_LST +XSLT_RUNTIME_EXTRA_LSTXSLT_RUNTIME_EXTRA_FREEXSLT_RUNTIME_EXTRAxsltTemplate diff --git a/doc/APIfunctions.html b/doc/APIfunctions.html index 7d4a38c5..7ad5a26f 100644 --- a/doc/APIfunctions.html +++ b/doc/APIfunctions.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
@@ -214,9 +219,9 @@ A:link, A:visited, A:active { text-decoration: underline }

Type xmlChar **:

-xsltFormatNumberConversion xsltGetQNameURI xsltSaveResultToString +xsltFormatNumberConversion

Type xmlDocPtr:

@@ -231,14 +236,14 @@ A:link, A:visited, A:active { text-decoration: underline } xsltProfileStylesheet xsltRunStylesheet xsltRunStylesheetUser -xsltParseStylesheetProcess -xsltParseStylesheetDoc -xsltLoadStylesheetPI xsltSaveResultTo xsltSaveResultToFilename xsltSaveResultToFile xsltSaveResultToFd xsltSaveResultToString +xsltParseStylesheetProcess +xsltParseStylesheetDoc +xsltLoadStylesheetPI

Type xmlGenericErrorFunc:

@@ -325,11 +330,6 @@ A:link, A:visited, A:active { text-decoration: underline } xsltParseStylesheetVariable xsltParseStylesheetParam xsltParseStylesheetCallerParam -xsltTransformFunction -xsltTransformFunction -xsltParseStylesheetOutput -xsltNumberFormat -xsltParseTemplateContent xsltGetNsProp xsltPrintErrorContext xsltMessage @@ -339,6 +339,11 @@ A:link, A:visited, A:active { text-decoration: underline } xsltHandleDebuggerCallback xsltAddCallCallback xslAddCall +xsltTransformFunction +xsltTransformFunction +xsltParseStylesheetOutput +xsltNumberFormat +xsltParseTemplateContent

Type xmlNodePtr *:

@@ -517,18 +522,18 @@ A:link, A:visited, A:active { text-decoration: underline } xsltRunStylesheetUser xsltParseGlobalVariable xsltParseGlobalParam -xsltFreeStylesheet -xsltDecimalFormatGetByName -xsltParseStylesheetProcess -xsltParseStylesheetOutput -xsltParseTemplateContent -xsltAllocateExtra xsltPrintErrorContext xsltSaveResultTo xsltSaveResultToFilename xsltSaveResultToFile xsltSaveResultToFd xsltSaveResultToString +xsltFreeStylesheet +xsltDecimalFormatGetByName +xsltParseStylesheetProcess +xsltParseStylesheetOutput +xsltParseTemplateContent +xsltAllocateExtra

Type xsltTemplatePtr:

@@ -619,14 +624,14 @@ A:link, A:visited, A:active { text-decoration: underline } xsltAddStackElemList xsltFreeGlobalVariables xsltVariableLookup -xsltTransformFunction -xsltNumberFormat -xsltAllocateExtraCtxt xsltPrintErrorContext xsltMessage xsltDoSortFunction xsltSaveProfiling xsltHandleDebuggerCallback +xsltTransformFunction +xsltNumberFormat +xsltAllocateExtraCtxt

Type xsltTransformFunction:

diff --git a/doc/APIsymbols.html b/doc/APIsymbols.html index ec1e4e9e..e3230aef 100644 --- a/doc/APIsymbols.html +++ b/doc/APIsymbols.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }

Related links
- + +
API Indexes
    +
+
+ +
+
@@ -125,6 +130,7 @@ A:link, A:visited, A:active { text-decoration: underline } XSLT_REGISTER_VARIABLE_LOOKUPXSLT_RUNTIME_EXTRAXSLT_RUNTIME_EXTRA_FREE +XSLT_RUNTIME_EXTRA_LSTXSLT_SAXON_NAMESPACEXSLT_STRANGEXSLT_TIMESTAMP_TICS_PER_SEC diff --git a/doc/FAQ.html b/doc/FAQ.html index c1211269..1802b617 100644 --- a/doc/FAQ.html +++ b/doc/FAQ.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/bugs.html b/doc/bugs.html index d0c8afd0..04c5a713 100644 --- a/doc/bugs.html +++ b/doc/bugs.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
@@ -114,7 +119,9 @@ instead. Do not send code, I won't debug it (but patches are really appreciated!).

Check the following too before posting:

Related links
- + +
API Indexes
    +
+
+ +
+
diff --git a/doc/docbook.html b/doc/docbook.html index 64f325b6..283afc27 100644 --- a/doc/docbook.html +++ b/doc/docbook.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
Related links
- + +
API Indexes
    +
+
+ +
+
@@ -105,7 +110,7 @@ few pointers and informations which may be helpful:

  • I have uploaded a small tarball containing XML Catalogs for DocBook 4.1.2 which seems to work fine for me too
  • -
  • Informations on installing a Windows +
  • Informations on installing a Windows DocBook processing setup based on Cygwin (using the binaries from the official Windows port should be possible too)
  • Alexander Kirillov's page on Using DocBook XML diff --git a/doc/docs.html b/doc/docs.html index e7c498e0..d8e20d74 100644 --- a/doc/docs.html +++ b/doc/docs.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
  • Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/downloads.html b/doc/downloads.html index d802f0ac..20e9396f 100644 --- a/doc/downloads.html +++ b/doc/downloads.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/extensions.html b/doc/extensions.html index e7badea8..dbf100fc 100644 --- a/doc/extensions.html +++ b/doc/extensions.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/help.html b/doc/help.html index 8b06a7d4..470b4c48 100644 --- a/doc/help.html +++ b/doc/help.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/html/index.sgml b/doc/html/index.sgml index eab9867b..f6b33dba 100644 --- a/doc/html/index.sgml +++ b/doc/html/index.sgml @@ -186,8 +186,9 @@ - + + diff --git a/doc/html/libxslt-xsltinternals.html b/doc/html/libxslt-xsltinternals.html index bd9175c9..99348030 100644 --- a/doc/html/libxslt-xsltinternals.html +++ b/doc/html/libxslt-xsltinternals.html @@ -147,13 +147,17 @@ HREF="libxslt-xsltinternals.html#XSLTRUNTIMEEXTRAPTR" >xsltRuntimeExtraPtr; #define XSLT_RUNTIME_EXTRA (ctxt, nr) +HREF="libxslt-xsltinternals.html#XSLT-RUNTIME-EXTRA-LST-CAPS" +>XSLT_RUNTIME_EXTRA_LST (ctxt, nr) #define XSLT_RUNTIME_EXTRA_FREE (ctxt, nr) +#define XSLT_RUNTIME_EXTRA (ctxt, nr) struct xsltTemplate
    Related links
    #define XSLT_RUNTIME_EXTRA(ctxt, nr) (ctxt)->extras[(nr)].info
    #define XSLT_RUNTIME_EXTRA_LST(ctxt, nr) (ctxt)->extras[(nr)].info


    ctxt : 
    nr : 


    XSLT_RUNTIME_EXTRA()

    #define	XSLT_RUNTIME_EXTRA(ctxt, nr) (ctxt)->extras[(nr)].val








































    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/internals.html b/doc/internals.html index b1a1c581..2c733182 100644 --- a/doc/internals.html +++ b/doc/internals.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/intro.html b/doc/intro.html index 4116c778..8a949fb5 100644 --- a/doc/intro.html +++ b/doc/intro.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/libxslt-decl.txt b/doc/libxslt-decl.txt index 3534d1b8..6aa06e20 100644 --- a/doc/libxslt-decl.txt +++ b/doc/libxslt-decl.txt @@ -1,14 +1,14 @@ LIBXSLT_DOTTED_VERSION -#define LIBXSLT_DOTTED_VERSION "1.0.20" +#define LIBXSLT_DOTTED_VERSION "1.0.21" LIBXSLT_VERSION -#define LIBXSLT_VERSION 10020 +#define LIBXSLT_VERSION 10021 LIBXSLT_VERSION_STRING -#define LIBXSLT_VERSION_STRING "10020" +#define LIBXSLT_VERSION_STRING "10021" WITH_XSLT_DEBUG @@ -1053,15 +1053,15 @@ void LIBXSLT_DOTTED_VERSION -#define LIBXSLT_DOTTED_VERSION "1.0.20" +#define LIBXSLT_DOTTED_VERSION "1.0.21" LIBXSLT_VERSION -#define LIBXSLT_VERSION 10020 +#define LIBXSLT_VERSION 10021 LIBXSLT_VERSION_STRING -#define LIBXSLT_VERSION_STRING "10020" +#define LIBXSLT_VERSION_STRING "10021" WITH_XSLT_DEBUG diff --git a/doc/libxslt-refs.xml b/doc/libxslt-refs.xml index 1870f52b..b3e3d9b6 100644 --- a/doc/libxslt-refs.xml +++ b/doc/libxslt-refs.xml @@ -30,6 +30,7 @@ + @@ -288,6 +289,7 @@ + diff --git a/doc/libxslt-sections.txt b/doc/libxslt-sections.txt index 73aef242..437e7c70 100644 --- a/doc/libxslt-sections.txt +++ b/doc/libxslt-sections.txt @@ -238,14 +238,60 @@ LIBXSLT_PUBLIC xsltCleanupGlobals +
    +xsltutils +XSLT_TODO +XSLT_STRANGE +IS_XSLT_ELEM +IS_XSLT_NAME +IS_XSLT_REAL_NODE +xsltGetNsProp +xsltPrintErrorContext +xsltMessage +xsltSetGenericErrorFunc +xsltSetGenericDebugFunc +xsltDocumentSortFunction +xsltDoSortFunction +xsltGetQNameURI +xsltSaveResultTo +xsltSaveResultToFilename +xsltSaveResultToFile +xsltSaveResultToFd +xsltSaveResultToString +xsltSaveProfiling +xsltTimestamp +xsltCalibrateAdjust +XSLT_TIMESTAMP_TICS_PER_SEC +xsltDebugStatusCodes +xsltHandleDebuggerCallback +xsltAddCallCallback +xsltDropCallCallback +xsltSetDebuggerCallbacks +xslAddCall +xslDropCall +
    + +
    +xsltwin32config +LIBXSLT_DOTTED_VERSION +LIBXSLT_VERSION +LIBXSLT_VERSION_STRING +WITH_XSLT_DEBUG +DEBUG_MEMORY +DEBUG_MEMORY_LOCATION +ATTRIBUTE_UNUSED +LIBXSLT_PUBLIC +
    +
    xsltInternals XSLT_MAX_SORT XSLT_PAT_NO_PRIORITY xsltRuntimeExtra xsltRuntimeExtraPtr -XSLT_RUNTIME_EXTRA +XSLT_RUNTIME_EXTRA_LST XSLT_RUNTIME_EXTRA_FREE +XSLT_RUNTIME_EXTRA xsltTemplate xsltTemplatePtr xsltDecimalFormat @@ -287,48 +333,3 @@ xsltAllocateExtra xsltAllocateExtraCtxt
    -
    -xsltutils -XSLT_TODO -XSLT_STRANGE -IS_XSLT_ELEM -IS_XSLT_NAME -IS_XSLT_REAL_NODE -xsltGetNsProp -xsltPrintErrorContext -xsltMessage -xsltSetGenericErrorFunc -xsltSetGenericDebugFunc -xsltDocumentSortFunction -xsltDoSortFunction -xsltGetQNameURI -xsltSaveResultTo -xsltSaveResultToFilename -xsltSaveResultToFile -xsltSaveResultToFd -xsltSaveResultToString -xsltSaveProfiling -xsltTimestamp -xsltCalibrateAdjust -XSLT_TIMESTAMP_TICS_PER_SEC -xsltDebugStatusCodes -xsltHandleDebuggerCallback -xsltAddCallCallback -xsltDropCallCallback -xsltSetDebuggerCallbacks -xslAddCall -xslDropCall -
    - -
    -xsltwin32config -LIBXSLT_DOTTED_VERSION -LIBXSLT_VERSION -LIBXSLT_VERSION_STRING -WITH_XSLT_DEBUG -DEBUG_MEMORY -DEBUG_MEMORY_LOCATION -ATTRIBUTE_UNUSED -LIBXSLT_PUBLIC -
    - diff --git a/doc/news.html b/doc/news.html index 8c4d365b..76b535ac 100644 --- a/doc/news.html +++ b/doc/news.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/python.html b/doc/python.html index 3dabfdd7..8a9f53a2 100644 --- a/doc/python.html +++ b/doc/python.html @@ -49,13 +49,18 @@ A:link, A:visited, A:active { text-decoration: underline }
    Related links
    - + +
    API Indexes
      +
    +
    + +
    +
    diff --git a/doc/search.php b/doc/search.php new file mode 100644 index 00000000..f7d03f1a --- /dev/null +++ b/doc/search.php @@ -0,0 +1,410 @@ + + + + + +Search the documentation on XMLSoft.org + + +
    Related links
    + + +
    +Gnome2 LogoRed Hat Logo
    Made with Libxslt Logo
    +
    +

    The XSLT C library for Gnome

    +

    libxslt

    +
    +
    + + +
    + + + +
    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 = strtoupper($name); + $m = strtolower($module); + $url = "html/libxml-$m.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 = strtoupper($name); + $m = strtolower($module); + $url = "XSLT/html/libxslt-$m.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 = strtoupper($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 = strtoupper($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 (($j <= 0) && ($k <= 0)) { + echo "

    No result found for $word\n"; + } + } + 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/doc/site.xsl b/doc/site.xsl index 75d8c184..8ff7a2c6 100644 --- a/doc/site.xsl +++ b/doc/site.xsl @@ -85,6 +85,11 @@ +
    + + +