W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2013

Re: Question about pxp:zip

From: Florent Georges <fgeorges@fgeorges.org>
Date: Tue, 8 Oct 2013 18:09:11 +0200
Message-ID: <CADyR_r2gXjRCMkzy-k+Cs1TsaJGS+_is49iT-3fNmf_16Pr45w@mail.gmail.com>
To: Erik Siegel <mailing@xatapult.nl>
Cc: XProc Dev <xproc-dev@w3.org>
  Hi,

  Yes, this is a problem.  The "solution" I use is to add an attribute
xml:base to the root element, to change the document base URI.  The
problem is that it actually modifies the document, and it might fail
validation later on, when it is read back from the archive (I have
this exact problem, so I need to modify the document by stripping the
xml:base attribute before validating it).

  But that's the best one I found till now.  I think what we need is a
standard step p:set-base-uri, to set the base URI of a document,
and/or a way to set the base URI of a document flowing through any
output port.

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 8 October 2013 15:14, Erik Siegel wrote:
> Hi,
>
>
>
> I'm lost on how to use Calabash pxp:zip... can't figure out how to do
> this... I hope anybody can help me
>
>
>
> I need to store several pieces of XML produced by (sub)pipelines. So
> according to the documentation in
> http://exproc.org/proposed/steps/other.html#zip I need to supply these as a
> sequence on the source port of the pxp:zip step and use a zip-manifest that
> refers to the base-uri's of these documents and tells pxp:zip where to put
> them in the zip file.
>
>
>
> But.. all my documents are produced by my XProc script and (as far as I can
> see) all have the same base-uri. How can I ever distinguish between them?
>
>
>
> The only solution I can think of is storing them first to disk and then read
> them back in. Which does not sound like good solution to me.
>
>
>
> Hope anybody can help,
>
> Regards,
> Erik Siegel
>
>
>
>
>
>
>
>
Received on Tuesday, 8 October 2013 16:09:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:11 UTC