summaryrefslogtreecommitdiff
path: root/contrib/xml2/README.xml2
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/xml2/README.xml2')
-rw-r--r--contrib/xml2/README.xml213
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/xml2/README.xml2 b/contrib/xml2/README.xml2
index f5335c38b5..c2e7170386 100644
--- a/contrib/xml2/README.xml2
+++ b/contrib/xml2/README.xml2
@@ -21,17 +21,24 @@ you can place it in a different directory in a PostgreSQL tree).
Before you begin, just check the Makefile, and then just 'make' and
'make install'.
-This code requires libxml to be previously installed.
+By default, this module requires both libxml2 and libxslt to be installed
+on your system. If you do not have libxslt or do not want to use XSLT
+functions, you must edit the Makefile to not build the XSLT functions,
+as directed in its comments; and edit pgxml.sql.in to remove the XSLT
+function declarations, as directed in its comments.
Description of functions
------------------------
The first set of functions are straightforward XML parsing and XPath queries:
-xml_valid(document) RETURNS bool
+xml_is_well_formed(document) RETURNS bool
This parses the document text in its parameter and returns true if the
-document is well-formed XML.
+document is well-formed XML. (Note: before PostgreSQL 8.2, this function
+was called xml_valid(). That is the wrong name since validity and
+well-formedness have different meanings in XML. The old name is still
+available, but is deprecated and will be removed in 8.3.)
xpath_string(document,query) RETURNS text
xpath_number(document,query) RETURNS float4