W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2016

Re: Doctype declarations on XML produced in zips

From: Imsieke, Gerrit, le-tex <gerrit.imsieke@le-tex.de>
Date: Tue, 10 May 2016 19:13:20 +0200
To: xproc-dev@w3.org
Message-ID: <573216B0.2070104@le-tex.de>
The serialization settings of the p:xslt step don’t have any effect 
because the XML that they produce won’t be immediately serialized.

The XProc serialization settings of other ports only apply when the 
output is serialized, which it isn’t, either.

I’m afraid you have to p:store the files first with the appropriate 
serialization settings, create the zip manifest and then zip it.

Example for p:store: 

See also the steps "zip-manifest" and "zip" further down.


On 10.05.2016 18:29, Wendell Piez wrote:
> Hi,
> Does anyone have hints on how to get a DOCTYPE declaration (or other
> things indicated using serialization parameters) on XML files
> generated dynamically in an XProc pipeline and packed directly into a
> zip file?
> I have a pxp:zip step whose 'source' port is bound to the secondary
> output of an XSLT step, which writes a file using xsl:result-document.
> It appears to work -- my generated file is in the zip.
> However, the serialization parameters on my xsl:result-document
> instruction do not have any effect, nor can I see where else I can
> apply them. I've even pulled the generation of the resource into a
> subpipeline but serialization settings on output ports there have no
> effect either.
> As always grateful for any pointers, or even "this can't be done
> [without writing files to the system first]" -- I'm using Calabash
> 1.1..5-96.
> Cheers,
> Wendell

Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit.imsieke@le-tex.de, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler
Received on Tuesday, 10 May 2016 17:13:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 10 May 2016 17:13:53 UTC