ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
RE: [xml-dev] Check out the pipeline submission
by Leigh Dodds other posts by this author
Mar 1 2002 1:32PM messages near this date
Re: [xml-dev] Check out the pipeline submission | RE: [xml-dev] HTTPEctomy considered bad (was RE: RE: [xml-dev] MS thinks HTTP Needs Replacing???)
I've had a chunk of code that provides a trivial API and 
vocabulary for pipelines sitting around for ages. There's actually 
very little do it, because it wasn't aimed at the same 
space at this stuff, and XPipe -- i.e. 'industrial processing'.

It was intended as a way for non-developers to make use 
of SAX filters without having to write any code. It overlaps 
most strongly with David Brownells work.

Here's an example:

<!DOCTYPE gz:gauze PUBLIC "+//IDN ldodds.com//DTD Gauze 0.1//EN" "schemas/gauze.dtd"> 
<gz:gauze xmlns:gz="http://www.ldodds.com/ns/gauze/"> 
   <gz:pipe> 
      <gz:filter class="...a.filter"/> 
      <gz:filter class="...some.other.filter..."/>       
    <gz:filter class="com.ldodds.gauze.sax.DataWriterAdapter"> 
         <gz:prop name="OutputFileName" value="formatted.txt"/> 
         <gz:prop name="IndentStep" value="15"/> 
      </gz:filter> 
   </gz:pipe> 
</gz:gauze> 

And then:

java com.ldodds.gauze.apps.Gauze in.xml pipe_def.xml

with output being dumped to stdout.

I was then going to lift filters from other places to do work such as 
validation (DTD and Schematron only initially), transformation, etc.

It seemed a shame that there was functionality available -- 
utility code to do useful streaming processing of data -- that couldn't 
be used from the command line. I've always been surprised that 
more work hasn't been put in to writing useful SAX filters. That was 
one reason I was interested in the 'Collected Works of SAX' idea 
that never took off.

Recently I've been spending a lot of time with Cocoon and am quite 
impressed by the model. With the ability to slurp in XML and HTML 
content from anywhere and then process it through multiple 
pipelines is very nice.

Adding in Simons reg frag (which I've nearly finished wrapping as 
a Cocoon transformer), the streaming transformation stuff that 
was discussed here recently, and the principles of REST makes 
for some very interesting possibilities.

Cheers,

L.

>  -----Original Message-----
>  From: Simon St.Laurent [mailto:simonstl@[...].com]
>  Sent: 01 March 2002 01:13
>  To: Tim Bray
>  Cc: xml-dev@[...].org
>  Subject: Re: [xml-dev] Check out the pipeline submission
>  
>  
>  On Thu, 2002-02-28 at 18:33, Tim Bray wrote:
>  > http://www.w3.org/TR/xml-pipeline/
>  > 
>  > I hear a heavy echo of OS360 JCL... //step1.sysin dd etc....
>  
>  I'm not familar with OS360, but I hear a heavy echo of ant [1], which
>  doesn't seem too unreasonable to me.
>  
>  XML's grown pretty hairy over the years, and it's nice to see that at
>  least acknowledged.  Could have done without the W3C XML Schema in the
>  middle, but this isn't anything too weird, IMHO.
>  
>  [1] - http://jakarta.apache.org/ant/
>  
>  -- 
>  Simon St.Laurent
>  Ring around the content, a pocket full of brackets
>  Errors, errors, all fall down!
>  http://simonstl.com
>  
>  
>  -----------------------------------------------------------------
>  The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
>  initiative of OASIS <http://www.oasis-open.org>
>  
>  The list archives are at http://lists.xml.org/archives/xml-dev/
>  
>  To subscribe or unsubscribe from this list use the subscription
>  manager: <http://lists.xml.org/ob/adm.pl>
>  

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Tim Bray
Michael Kay
Simon St.Laurent
Leigh Dodds

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved