OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Check out the pipeline submission

[ Lists Home | Date Index | Thread Index ]

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@simonstl.com]
> Sent: 01 March 2002 01:13
> To: Tim Bray
> Cc: xml-dev@lists.xml.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>
> 




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS