- From: Imsieke, Gerrit, le-tex <gerrit.imsieke@le-tex.de>
- Date: Sun, 9 Aug 2015 19:44:15 +0200
- To: xproc-dev@w3.org
Serialization options in p:serialization refer to a port with the given name. In your pipeline, there is a commented-out step that your serialization settings should probably pertain to. You can add the same serialization options (indent, etc.) to p:store as to p:serialization. Instead of p:storing XML, you could output it on a named port with individual p:serialization settings and store it to the respective files in your invocation, e.g., -o flat=/path/to/flatmap2.xml Gerrit On 09.08.2015 19:35, Dan Vint wrote: > thanks. > > The error I get in oXygen is: > > err:XS0039 : A p:serialization specifies a non-existant port. It is a > static error if the port specified on the p:serialization is not the > name of an output port on the pipeline in which it appears or if more > than one p:serialization element is applied to the same port. > > Here is the code: > > <?xml version="1.0" encoding="UTF-8"?> > <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" > name="Preprocess-translations" version="1.0" > > > > <p:documentation> > This XPROC script runs all the steps required to take an > Ixiasoft Localization kit > and modify the source files and organize them into a directory > structure and zip > that content to be sent on for localization. > </p:documentation> > > <p:serialization > port="store-flat" > encoding="utf-8" > method="xml" > indent="true" > omit-xml-declaration="false"/> > > <p:input port="source"> > <p:document > href="file:/C:/Users/dan.vint/Desktop/DITAsource/fr-fr-loc-v1-source-maptesting/_mobile-dan1370798002064.ditamap"/> > > </p:input> > <p:output port="result "> > <!-- Write the result to "store-flat" --> > <!-- <p:pipe port="result" step="store-flat"></p:pipe> > --> </p:output> > > > > <!-- Process the DITAMAP file source to travel all the included > maps and topics > with stylesheet to flatten the structure and gather > information for later processing. --> > <p:xslt name="flatten-map"> > <p:input port="source"/> > <p:input port="stylesheet"> > <p:document > href="file:/C:/work/svn/scripts/translations/make-translations-map.xsl"/> > </p:input> > <p:input port="parameters" sequence="true"> > <p:empty/> > </p:input> > > </p:xslt> > > <!-- <p:store > href="file:/C:/Users/dan.vint/Desktop/DITAsource/fr-fr-loc-v1-source-maptesting/_flatmap2.xml" > name="store-flat" /> --> > > > </p:declare-step> > > Ultimately I want to write the output to a specific file. I took out the > store information as I thought it might be contributing to the problem > > > > > At 04:46 PM 8/7/2015, Imsieke, Gerrit, le-tex wrote: >> I think it would help us help you if we saw the actual pipeline. >> >> On 08.08.2015 01:42, Dan Vint wrote: >> > Thanks for the pointer. So I tried to make se of this based upon some >> > examples I found and I'm getting a message about the port not being >> > bound. I'm using the result port, but nothing seems to be making this >> > work. I need to do more digging, thanks. >> > >> > .dan > > --------------------------------------------------------------------------- > Danny Vint > > Panoramic Photography > http://www.dvint.com > > voice: 619-647-5780 > > -- 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 Sunday, 9 August 2015 17:44:42 UTC