W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

Re: 'missed' step?

From: Dave Pawson <dave.pawson@gmail.com>
Date: Mon, 19 Apr 2010 13:13:18 +0100
Message-ID: <i2w711a73df1004190513ge9f6ae3cm254df2baa011376d@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 19 April 2010 12:13:52 GMT