Re: 'missed' step?

On 19 April 2010 12:19, Norman Walsh <ndw@nwalsh.com> wrote:
> Dave Pawson <dave.pawson@gmail.com> writes:
>> I'm using calabash, unzip a file then I want to pretty print it, using
>> xslt to indent it.
>>
>> <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
>>            xmlns:c="http://www.w3.org/ns/xproc-step"
>>            xmlns:cx="http://xmlcalabash.com/ns/extensions"
>>            xmlns:pxp="http://exproc.org/proposed/steps"
>>            exclude-inline-prefixes="pxp"
>>                 version="1.0">
>
> <p:serialization port="result" indent="true"/>




>> <p:xslt name='clean' version="1.0">
>>   <p:input port="stylesheet" >
>>     <p:document href="clean.xsl"/>
>>   </p:input>
>>   <p:input port="parameters">
>>             <p:empty/>
>>         </p:input>
>> </p:xslt>
>>  </p:pipeline>
>>


> The output of an XSLT step in a pipeline is not a serialized sequence of
> octets, it's an XML data model. The serialization options have no effect.

? Serializations of the xslt stylesheet I guess you mean there?

>
> If you want the serialized output to be indented (or in a weird encoding
> or anything else), you have to tell XProc or the XProc step that you want
> it serialized that way.



Yet  I don't do that 'after' the xslt 'step'?
I do it ... globally? Is that the right word?

Works, so thanks Norm.

p:serialization! go read DP

regards




-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk

Received on Monday, 19 April 2010 12:13:51 UTC