Mercurial > hg > ooxml
annotate visualise.xpl @ 13:f78e8c55c06b
three steps now
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 03 Apr 2017 14:46:01 +0100 |
parents | 01e125d722be |
children | e767bef35bb9 |
rev | line source |
---|---|
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
1 <?xml version='1.0'?> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
2 <!DOCTYPE p:pipeline SYSTEM "../../../WWW/XML/XProc/docs/schemas/xproc.dtd" > |
13 | 3 <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0" name="vis"> |
4 <p:serialization method="text" port="result"/> | |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
5 |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
6 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
7 <div>Run this e.g. as follows: |
13 | 8 xproc --input source=sample2/xl/worksheets/sheet1.xml visualise.xpl elabDir=file:/d/MT/sonra/OOXML</div> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
9 </p:documentation> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
10 |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
11 <p:option name="elabDir" required="true"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
12 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
13 <div>Directory where stylesheets, other info for stylesheet elaboration are found</div> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
14 </p:documentation> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
15 </p:option> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
16 |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
17 <p:load name="ss1"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
18 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
19 </p:load> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
20 |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
21 <p:xslt name="format"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
22 <p:input port="source"> |
13 | 23 <p:pipe step="vis" port="source"/> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
24 </p:input> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
25 <p:input port="stylesheet"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
26 <p:pipe step="ss1" port="result"/> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
27 </p:input> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
28 <p:with-param name="elabDir" select="$elabDir"/> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
29 </p:xslt> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
30 |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
31 <p:load name="ss2"> |
12
01e125d722be
widening scope so better names
Henry S. Thompson <ht@markup.co.uk>
parents:
10
diff
changeset
|
32 <p:with-option name="href" select="concat($elabDir,'/rect.xsl')"/> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
33 </p:load> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
34 |
13 | 35 <p:xslt name="rect"> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
36 <p:input port="source"> |
10
01e80c7a9575
simple ascii type matrix output working
Henry S. Thompson <ht@markup.co.uk>
parents:
8
diff
changeset
|
37 <p:pipe step="format" port="result"/> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
38 </p:input> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
39 <p:input port="stylesheet"> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
40 <p:pipe step="ss2" port="result"/> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
41 </p:input> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
42 </p:xslt> |
12
01e125d722be
widening scope so better names
Henry S. Thompson <ht@markup.co.uk>
parents:
10
diff
changeset
|
43 |
01e125d722be
widening scope so better names
Henry S. Thompson <ht@markup.co.uk>
parents:
10
diff
changeset
|
44 <p:load name="ss3"> |
01e125d722be
widening scope so better names
Henry S. Thompson <ht@markup.co.uk>
parents:
10
diff
changeset
|
45 <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/> |
01e125d722be
widening scope so better names
Henry S. Thompson <ht@markup.co.uk>
parents:
10
diff
changeset
|
46 </p:load> |
13 | 47 |
48 <p:xslt name="asc"> | |
49 <p:input port="source"> | |
50 <p:pipe step="rect" port="result"/> | |
51 </p:input> | |
52 <p:input port="stylesheet"> | |
53 <p:pipe step="ss3" port="result"/> | |
54 </p:input> | |
55 </p:xslt> | |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
56 </p:pipeline> |