Mercurial > hg > ooxml
comparison ascii.xpl @ 8:785187b9caef
working toward doing an ascii-rectangle repr of a sheet
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 02 Apr 2017 21:13:16 +0800 |
parents | |
children | 01e80c7a9575 |
comparison
equal
deleted
inserted
replaced
7:fd8678fb7b4d | 8:785187b9caef |
---|---|
1 <?xml version='1.0'?> | |
2 <!DOCTYPE p:pipeline SYSTEM "../../../WWW/XML/XProc/docs/schemas/xproc.dtd" > | |
3 <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0" name="ascii"> | |
4 | |
5 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> | |
6 <div>Run this e.g. as follows: | |
7 xproc --input source=sample2/xl/worksheets/sheet1.xml ascii.xpl elabDir=file:/d/MT/sonra/OOXML</div> | |
8 </p:documentation> | |
9 | |
10 <p:option name="elabDir" required="true"> | |
11 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> | |
12 <div>Directory where stylesheets, other info for stylesheet elaboration are found</div> | |
13 </p:documentation> | |
14 </p:option> | |
15 | |
16 <p:load name="ss1"> | |
17 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> | |
18 </p:load> | |
19 | |
20 <p:xslt name="format"> | |
21 <p:input port="source"> | |
22 <p:pipe step="ascii" port="source"/> | |
23 </p:input> | |
24 <p:input port="stylesheet"> | |
25 <p:pipe step="ss1" port="result"/> | |
26 </p:input> | |
27 <p:with-param name="elabDir" select="$elabDir"/> | |
28 </p:xslt> | |
29 | |
30 <p:load name="ss2"> | |
31 <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/> | |
32 </p:load> | |
33 | |
34 <p:xslt name="ascii"> | |
35 <p:input port="source"> | |
36 <p:pipe step="format" port="source"/> | |
37 </p:input> | |
38 <p:input port="stylesheet"> | |
39 <p:pipe step="ss2" port="result"/> | |
40 </p:input> | |
41 <p:with-param name="elabDir" select="$elabDir"/> | |
42 </p:xslt> | |
43 </p:pipeline> |