[XML-SIG] PyXPath 1.1

uche.ogbuji@fourthought.com uche.ogbuji@fourthought.com
Tue, 26 Dec 2000 18:20:52 -0700


> "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> writes:
> 
> > > At the plug-in API level, I'd be interested in something more at
> > > the "location path" level, possibly an array of steps, each step
> > > with axis, node test, and list of predicates.
> > 
> > Yes, that would be a reasonable XPath API. How do you like the
> > 4Suite ParsedLocationPath class, and corresponding structures?
> 
> Likely! :-) I briefly skimmed the source and 4suite.org and can't seem
> to get a good description of what those structures look like, is there
> a URL I missed?

There is no such beast.  These were originally intended to be purely internal 
objects.  If we decided to expose them as an API, we'd want to decide on the 
naming (Martin doesn't like the "Parsed" prefixes, I'm +0 on killing them) and 
document them properly.

For now, your best bet is to have a look at XPath/Parsed* in 4Suite (and also 
check out Xslt/Parsed* for the associated Pattern machine objects).

> Note also: I'm getting odd URL redirects going to 4suite.{org|com},
> with URLs being replaced with quoted strings that then won't resolve:
> 
>   http://www.4suite.org/
>     --> http://www.4suite.org/"index.epy"
> 
> This seems to happen on "directory" URLs.

Hmm.  I looked into this, but I'm not seeing it.  I went as bare-bones as 
possible to avoid user agent artifacts and all that:

[uogbuji@borgia uogbuji]$ telnet www.4suite.org 80
Trying 204.144.146.184...
Connected to dollar.4suite.org.
Escape character is '^]'.
GET http://www.4suite.org/ HTTP/1.0

HTTP/1.1 200 OK
Date: Wed, 27 Dec 2000 01:14:59 GMT
Server: Apache/1.3.12 (Unix) mod_snake/0.4.1
Last-Modified: Thu, 02 Nov 2000 19:07:30 GMT
ETag: "36f0d-178-3a01bb72"
Accept-Ranges: bytes
Content-Length: 376
Connection: close
Content-Type: text/html

<html>
<head>
  <meta http-equiv='Content-Type' content='text/html'>
  <meta http-equiv='Refresh' content='1;URL="index.epy"'>
</head>
<body>

  <TABLE WIDTH="100%" HEIGHT="100%">
    <TR>
      <TD ALIGN="CENTER">  <img src="images/4suite-org.gif"/><BR>
         <FONT SIZE="+1"><A HREF="index.epy">Click to Enter</A></FONT>
      </TD>
    </TR>
  </TABLE>

</body>
</html>
Connection closed by foreign host.
[uogbuji@borgia uogbuji]$ 

As you can see, the meta refresh goes to the relative "index.epy".  I don't 
know how this would cause the effect you mention.  What user agent are you 
using?

Thanks.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python