Re: [PATCHES] build/install xml2 when configured with libxml

2007-05-20 Thread Nikolay Samokhvalov
On 4/15/07, Peter Eisentraut [EMAIL PROTECTED] wrote: Well, if we're going to make libxslt an explicit thing, then it'd be trivial to add an xslt transformation function into the core, and then I think we can claim equivalent support. But we'll have to check the details, of course. I have been

Re: [PATCHES] build/install xml2 when configured with libxml

2007-05-20 Thread Nikolay Samokhvalov
On 5/20/07, Andrew Dunstan [EMAIL PROTECTED] wrote: contrib is a misnomer at best. When 8.3 branches I intend to propose that we abandon it altogether, in line with some previous discussions. We can change the configure help text if people think it matters that much - which seems to me much

Re: [PATCHES] xpath_array with namespaces support

2007-04-22 Thread Nikolay Samokhvalov
What's with this patch? I do not see it in unapplied patches list, neither it was commited... What we have now in CVS is not a good thing. On 4/10/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: Here is new version that adds following changes: 4. Function is now strict, per discussion. 5

Re: [PATCHES] xpath_array with namespaces support

2007-04-16 Thread Nikolay Samokhvalov
on external tools to do such conversions. It's not quite rigth as of now, because rel-XML mapping capabilities exist in the core: it's XML/SQL publishing functions and alternative mapping functions (such as table_to_xml() ). On 4/10/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: Here is new

Re: [PATCHES] xpath_array with namespaces support

2007-04-10 Thread Nikolay Samokhvalov
version=1.0?a /b /'); // now XML datum is always wrapped with dummy x.../x, XML prologue simply goes away (if any). 7. Some cleanup. On 4/4/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: The patch attached contains following changes: 1. The function name xmlpath() is changed to xpath(); 2

Re: [PATCHES] xpath_array with namespaces support

2007-04-08 Thread Nikolay Samokhvalov
). On 4/4/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: The patch attached contains following changes: 1. The function name xmlpath() is changed to xpath(); 2. Approach of passing of namepspace mappings to the function is changed: now that array (the 3rd argument) should be a 2-dimentional

Re: [PATCHES] xpath_array with namespaces support

2007-04-04 Thread Nikolay Samokhvalov
On 4/4/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: So, choosing between two inefficient approaches: 1. mine, which in some cases use dummy element wrapping, that we could escape; 2. proposed by you, which leads to +1 parsing. ... I'd definitely choose the first one. I'd make it a bit

Re: [PATCHES] xpath_array with namespaces support

2007-03-18 Thread Nikolay Samokhvalov
On 3/5/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: On 3/4/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: I'll fix these issues and extend the patch with resgression tests and docs for xpath_array(). I'll resubmit it very soon. Here is a new version of the patch. I didn't change any

Re: [PATCHES] xpath_array with namespaces support

2007-03-17 Thread Nikolay Samokhvalov
What about it? W/o this not large patch XML functionality in 8.3 will be weak... Will it be accepted? On 3/5/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: On 3/4/07, Nikolay Samokhvalov [EMAIL PROTECTED] wrote: I'll fix these issues and extend the patch with resgression tests and docs

Re: [PATCHES] xpath_array with namespaces support

2007-03-08 Thread Nikolay Samokhvalov
On 3/3/07, Bruce Momjian [EMAIL PROTECTED] wrote: I tried this patch bug found this regression failure: -- Considering only built-in procs (prolang = 12), look for multiple uses -- of the same internal function (ie, matching prosrc fields). It's OK to -- have several entries with

Re: [PATCHES] xml2 contrib patch supporting default XML namespaces

2007-03-06 Thread Nikolay Samokhvalov
On 3/6/07, Mike Rylander [EMAIL PROTECTED] wrote: Attatched you'll find a patch that I've been kicking around for a while that I'd like to propose for inclusion in 8.3. I attempted to submit this through the original xml2 author (as far back as the 7.4 days) but got no response. It's really

[PATCHES] xpath_array with namespaces support

2007-02-20 Thread Nikolay Samokhvalov
As a result of discussion with Peter, I provide modified patch for xpath_array() with namespaces support. The signature is: _xml xpath_array(text xpathQuery, xml xmlValue[, _text namespacesBindings]) The third argument is 2-dimensional array defining bindings for namespaces. Simple examples:

Re: [PATCHES] patch for contrib/xml2

2007-02-18 Thread Nikolay Samokhvalov
Please wait a little bit, I'll send updated patch (xpath_array() in core) tonight or tomorrow. It seems so that there is no actual needs in other xpath-functions... Just to recall: - xpath_array() produces xml[] as a result -- so, it's possible to process then any of returned XML fragments, with

Re: [pgsql-patches] vcbuild updates

2007-01-15 Thread Nikolay Samokhvalov
On 1/16/07, Magnus Hagander [EMAIL PROTECTED] wrote: * xml requires xslt and iconv Why xslt is requred? XML type doesn't depend on libxslt, only on libxml2. -- Best regards, Nikolay ---(end of broadcast)--- TIP 9: In versions below 8.0, the

Re: [PATCHES] XML syntax patch

2006-09-05 Thread Nikolay Samokhvalov
Two minor notes: - this is SQL/XML publishing functions patch actually - Initial author of the patch is Pavel Stehule, David added some documentation (AFAIK) On 9/5/06, Bruce Momjian [EMAIL PROTECTED] wrote: I have received an update XML syntax patch from Nikolay (summer of code) based on David

[PATCHES] patch for contrib/xml2

2006-09-05 Thread Nikolay Samokhvalov
Hello, Here is the patch for contrib/xml2 (attached), that: - renames xml_valid() to xml_is_well_formed() - adds PG_MODULE_MAGIC; at the beginning of xpath.c - introduces xpath_array() function - adds some words about that function and caution about libraries to README I understand that it's

Re: [PATCHES] SQL/XML publishing function experimental patch II

2006-08-23 Thread Nikolay Samokhvalov
On 8/22/06, Bruce Momjian [EMAIL PROTECTED] wrote: I am still waiting for some documentation on what XML support we have, and what we need. We can't decide on this patch until we have that. Here is my thoughts: http://nikolay.samokhvalov.com/2006/08/23/xml-and-relational/ (maybe too much

Re: [PATCHES] SQL/XML publishing function experimental patch II

2006-06-15 Thread Nikolay Samokhvalov
I'll prepare some classification of differend kinds of XML support, including a brief overview for oracle, sql server and db2 (I'm a person who works on that SoC project) As for Pavel's patch, I think it's pretty complete piece of several SQL/XML functions and could be usefull for people (e.g