Friday, 1 October 2010

Parse Part Two

After earlier attempts at parsing XProc pipelines in my 'half-pipe' project I've learnt a thing or two about what constitutes augmenting a pipeline so that you can carry-out further processing. This time round I'm merging the source pipeline with the XProc step declarations (lifted from the 'Pipeline Step Summary' in the spec.) in order to generate a pipeline that states not only the ports that I'm declaring but also the implied ones too. By 'implied' I mean those that you don't have to declare in order for the pipeline to work. You don't need to declare the input source unless you are either explicitly binding it yourself or adding a select attribute to it.

I've also included the output ports too but an XProc processor will 'spit out its dummy' if you declare them in an instance of a step. So to get around that I've embedded them in a p:pipeinfo so that the processor will ignore them but I can still use them. Above all else, I want to ensure that once I've finished parsing and augmenting a pipeline that it will still function as one before I then try and render it as SVG.

No comments:

Post a Comment