On Tue, Apr 22, 2008 at 12:17 PM, Stephen Hahn <[EMAIL PROTECTED]> wrote:
> * Shawn Walker <[EMAIL PROTECTED]> [2008-04-22 16:56]:
> > On Tue, Apr 22, 2008 at 11:06 AM, Stephen Hahn <[EMAIL PROTECTED]> wrote:
>  > >   (Yes.)  What XML data do you plan to transform?  Or, if you like, why
>  > >   would we use XML in an interface layer that we expect to be mostly
>  > >   directed at humans?
>  >
>  > I was mainly talking about transforming the output.
>  >
>  > The web formats I imagine being used are XML-based in nature, right?
>  > So, the output could be XHTML, RSS, etc.
>  >
>  > I don't have my heart set on any particular toolkit here. I just
>  > wanted to see if Genshi had been considered.
>
>   Got it.
>
>   When I read through the Genshi site, I was a bit worried about
>
>         Alternative implementations of Python such as PyPy, Jython, or
>         IronPython are also unlikely to work due to the Genshi code
>         using some rather advanced features of the CPython
>         implementation and standard library.
>
>   Since I would expect any use of a template system to actually render
>   to a file, rather then directly to the requestor (as we do presently),
>   the absolute performance difference appears small.

Ouch. I missed that little bit. I would very much consider the ability
to run via Jython, etc. an advantage. I'm personally used to template
systems rendering to the requester instead of to a file. However, I
could see a mixed approach or the former being appropriate depending
on the interactivity of the content.

>   I suppose what I'm looking for is whether or not the XML stream is a
>   useful intermediate interface for potential non-human consumers.  That
>   is, is having
>
>   http://pkg.opensolaris.org/status/xml
>
>   being some XML representation of the server's status really useful?
>   Or am I just considering imaginary consumers that will never
>   materialize?

It certainly could be. Someone could use a little xslt and transform
it to whatever form they liked. To me, it's easier  than trying to
provide an advanced query interface (wsgi) to the server. The
downside, of course, is that the format would than have to become
standardised somehow so clients could parse it.

Having an intermediate XML format be available, while still providing
XHTML for browsers, RSS for readers, etc.; might be quite useful.

>   I would defer to anyone who actually gave each toolkit a try, of
>   course.

I have no particular favourite, and no experience with any of them.
I'm definitely going to try my hand with a few of them though and see
what its like.

Thanks for your responses,
-- 
Shawn Walker

"To err is human -- and to blame it on a computer is even more so." -
Robert Orben
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to