Re: [PHP-DEV] relative xpath queries

2002-07-16 Thread Dan Allen
Garland foster ([EMAIL PROTECTED]) wrote: > If this gets attention I'd add another request: > Please make the nodeset an array of REFERENCES to dom nodes, so we > wan use Xpath to locate a node and then we can change it using DOM > functions. > It will make a sensible difference to implement, for

[PHP-DEV] relative xpath queries

2002-07-16 Thread Dan Allen
XPath is crippled without the ability to do relative xpath queries. The interface is already provided by the libxml2 engine, it is just a matter of adding the option to xpath_eval(). If you are working recursively in an xml document (which you are always doing) and you need to run an xpath query

[PHP-DEV] period_diff (months between 2 dates)

2002-06-20 Thread Dan Allen
Months are a rather significant exception to date differences than any other unit of time. This is why mysql made a function specifically for this purpose. I recently had to use it and noticed the number of users on php-general asking this question, so I wanted to post true implementation of it

Re: [PHP-DEV] domxml and validation

2002-06-13 Thread Dan Allen
Christian Stocker ([EMAIL PROTECTED]) wrote: > Hi > > Some maybe already recognized it, for the others: There's DTD-Validation > in domxml available now. Excellent! Can't wait to try it out. However, I still have one very small request that maybe you can add while you are in the xmldoc funct

[PHP-DEV] another domxml problem

2002-06-12 Thread Dan Allen
If you were to run xpath_eval() on a xpath query that that doesn't exist in a document, like /foo/foo/foo on a document that is soley I think that it should still return an xpathcontext object, just with an empty nodeset, just as it would do if you run /doc/* ...there is no way to handle the resu

Re: [PHP-DEV] PECL != Siberia

2002-06-11 Thread Dan Allen
[EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > Dan Allen Wrote: > > Tomas V.V.Cox ([EMAIL PROTECTED]) wrote: > > > >> "Stig S. Bakken" wrote: > >> > > >> > You tell me :) We currently have no nice way of bootstrapping PEAR >

Re: [PHP-DEV] filesystem security questions

2002-06-11 Thread Dan Allen
I personally thing there are FAR more important things to work on in this extension before we even address this issue. For instance: - relative xpath queries #1!! - namespace support in xpath (meaning auto register from the xml context) - fixing get_element_by_id to just name a few. Dan Rob

Re: [PHP-DEV] PECL != Siberia

2002-06-11 Thread Dan Allen
Tomas V.V.Cox ([EMAIL PROTECTED]) wrote: > "Stig S. Bakken" wrote: > > > > You tell me :) We currently have no nice way of bootstrapping PEAR on > > Windows like we have on Unix (with "make install-pear-installer" and > > go-pear). What would be the most sensible way of giving Windows users >

Re: [PHP-DEV] xpath_register_ns problem

2002-06-11 Thread Dan Allen
Dan Allen ([EMAIL PROTECTED]) wrote: > I was testing out this function today (xpath_register_ns) and I > found a possible problem in its implementation. If you use several > namespaces in you document and then define a last one to be the > default namespace, how are you supposed

[PHP-DEV] xpath_register_ns problem

2002-06-11 Thread Dan Allen
I was testing out this function today (xpath_register_ns) and I found a possible problem in its implementation. If you use several namespaces in you document and then define a last one to be the default namespace, how are you supposed to register this with the php function. Example: http://w

Re: [PHP-DEV] DOMXML Function consistency

2002-06-07 Thread Dan Allen
Excellent, looks like this bug report is getting some limelight. While we are on the topic, I just wanted to put in a small plea. I realize that we want to map close the W3C, but I have a small request. Don't deprecate get_content(). I realize it is not a well know W3C standard, but there is a

[PHP-DEV] bug in domxml_get_element_by_id

2002-06-06 Thread Dan Allen
Recently the function domxml_get_element_by_id was changed from using an xpath query //*[@ID = '%s'] to actually using the ID hash from the DTD, which makes perfect sense. But for the following string: ]> foo foo hey there I get for $xml->ids() a list nodeset of 2 nodes, but

[PHP-DEV] Re: xpath and the current context

2002-06-05 Thread Dan Allen
We welcome you to a discussion already in progress. Dan Allen (that's me) brought up the issue that in the domxml extension, the xpath_eval function does not allow you to begin the query relative to a given node, as is possible in both the libxml2 libraries and as we are so familiar wit

[PHP-DEV] Re: [PEAR-DEV] patch for IT.php

2002-05-21 Thread Dan Allen
Honestly, I have to keep fighting this because I think that the points you guys are making are proving the opposite point. If I am a web-designer and I want to change the look of the page, I am presented with a template which is using a certain seperator. Now, as the designer I want to change th

Re: [PHP-DEV] Re: [PEAR-DEV] ITX.php require_once error

2002-05-21 Thread Dan Allen
:25, Dan Allen wrote: > > > The require_once is wrong in both IT.php and ITX.php > > Yes, I had mentioned the other in an eariler e-mail. Okay, I am way > > confused. I thought that PEAR was using a flat directory structure, > > but everyone keeps saying how all

[PHP-DEV] Re: [PEAR-DEV] ITX.php require_once error

2002-05-21 Thread Dan Allen
> The require_once is wrong in both IT.php and ITX.php Yes, I had mentioned the other in an eariler e-mail. Okay, I am way confused. I thought that PEAR was using a flat directory structure, but everyone keeps saying how all the '_' should be '/' when you install it. What is it, flat or deep?..

[PHP-DEV] a plead

2002-03-11 Thread Dan Allen
find it in your programming hearts to allow remove_attribute() to make it into 4_2_0. Thanks, Dan Allen -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php