Mercurial > hg > ooxml
annotate visualise.xpl @ 67:b66bcfae65d6
consistent defn style
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 12 Jun 2017 17:20:14 +0200 |
parents | 588cb9ba7c9c |
children |
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" > |
27
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
3 <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0" name="vis" xmlns:xf="http://www.w3.org/2005/xpath-functions" xmlns:cx="http://xmlcalabash.com/ns/extensions"> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
4 <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/> |
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 |
17
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
17 <p:option name="format"> |
15
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
13
diff
changeset
|
18 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> |
25
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
19 <div>If supplied, then use as stylesheet (located relative to elabDir), to |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
20 produce pretty output (e.g. ascii, html)</div> |
15
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
13
diff
changeset
|
21 </p:documentation> |
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
13
diff
changeset
|
22 </p:option> |
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
13
diff
changeset
|
23 |
48
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
24 <p:option name="raw"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
25 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
26 <div>If supplied, then use as output file for rect step</div> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
27 </p:documentation> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
28 </p:option> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
29 |
27
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
30 <p:variable name="base" select="base-uri()"> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
31 <p:pipe step="vis" port="source"/> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
32 </p:variable> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
33 <p:variable name="buPat" select="'^(.*/xl/)worksheets/sheet([^/]*).xml$'"/> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
34 |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
35 <!-- Will only work in XProc 3 :-( <p:variable name="baseParts" select="analyze-string($base,)"/>--> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
36 |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
37 <p:variable name="root" select="analyze-string($base,$buPat)/xf:match/xf:group[@nr=1]"/> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
38 <p:variable name="sheet-number" select="analyze-string($base,$buPat)/xf:match/xf:group[@nr=2]"/> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
39 <!--<cx:message> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
40 <p:with-option name="message" select="concat($base,'|',$sheet-number,'|')"/> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
41 </cx:message>--> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
42 |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
43 <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
|
44 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> |
25
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
45 <p:documentation> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
46 <div>Use cell format and other cues in order to assign classes to cells</div> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
47 </p:documentation> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
48 </p:load> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
49 |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
50 <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
|
51 <p:input port="source"> |
13 | 52 <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
|
53 </p:input> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
54 <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
|
55 <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
|
56 </p:input> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
57 <p:with-param name="elabDir" select="$elabDir"/> |
27
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
58 <p:with-param name="xlDir" select="$root"/> |
19
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
59 </p:xslt> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
60 |
36
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
61 <p:load name="ssm"> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
62 <p:with-option name="href" select="concat($elabDir,'/shared.xsl')"/> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
63 <p:documentation> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
64 <div>Detect and tabulate shared formalae master cells</div> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
65 </p:documentation> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
66 </p:load> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
67 |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
68 <p:xslt name="shared"> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
69 <p:input port="source"> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
70 <p:pipe step="vis" port="source"/> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
71 </p:input> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
72 <p:input port="stylesheet"> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
73 <p:pipe step="ssm" port="result"/> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
74 </p:input> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
75 <p:with-param name="elabDir" select="$elabDir"/> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
76 <p:with-param name="xlDir" select="$root"/> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
77 </p:xslt> |
ae605b77d1e4
compute (but not use) master formula cells info,
Henry S. Thompson <ht@markup.co.uk>
parents:
27
diff
changeset
|
78 |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
79 <p:load name="ss2"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
80 <p:with-option name="href" select="concat($elabDir,'/rect.xsl')"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
81 </p:load> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
82 |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
83 <p:xslt name="rect"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
84 <p:input port="source"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
85 <p:pipe step="format" port="result"/> |
48
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
86 <p:pipe step="shared" port="result"/> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
87 </p:input> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
88 <p:input port="stylesheet"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
89 <p:pipe step="ss2" port="result"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
90 </p:input> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
91 <p:with-param name="sheet-number" select="$sheet-number"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
92 <p:with-param name="xlDir" select="$root"/> |
48
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
93 </p:xslt> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
94 |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
95 <p:choose> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
96 <p:when test="p:value-available('raw')"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
97 <cx:message> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
98 <p:with-option name="message" select="concat($root,'worksheets/',$raw)"/> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
99 </cx:message> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
100 <p:store name="dump"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
101 <p:input port="source"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
102 <p:pipe step="rect" port="result"/> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
103 </p:input> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
104 <p:with-option name="href" select="concat($root,'worksheets/',$raw)"/> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
105 </p:store> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
106 <p:sink> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
107 <p:input port="source"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
108 <p:pipe step="dump" port="result"/> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
109 </p:input> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
110 </p:sink> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
111 </p:when> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
112 <p:otherwise> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
113 <p:sink> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
114 <p:input port="source"> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
115 <p:pipe step="rect" port="result"/> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
116 </p:input> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
117 </p:sink> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
118 </p:otherwise> |
5d9806f90896
basic integration of shared, but copying <f> is wrong, should reconstruct by denormalising <nf> for new home
Henry S. Thompson <ht@markup.co.uk>
parents:
40
diff
changeset
|
119 </p:choose> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
120 |
19
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
121 <p:load name="ssr"> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
122 <p:with-option name="href" select="concat($elabDir,'/refs.xsl')"/> |
25
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
123 <p:documentation> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
124 <div>Tokenise cell formulae and extract local, range and external references</div> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
125 </p:documentation> |
19
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
126 </p:load> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
127 |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
128 <p:xslt name="refs"> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
129 <p:input port="source"> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
130 <p:pipe step="rect" port="result"/> |
19
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
131 </p:input> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
132 <p:input port="stylesheet"> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
133 <p:pipe step="ssr" port="result"/> |
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
134 </p:input> |
27
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
135 <p:with-param name="sheet-number" select="$sheet-number"/> |
8309dcfce613
preparing for variable deref
Henry S. Thompson <ht@markup.co.uk>
parents:
26
diff
changeset
|
136 <p:with-param name="xlDir" select="$root"/> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
137 </p:xslt> |
25
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
138 |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
139 <p:load name="ssr2"> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
140 <p:with-option name="href" select="concat($elabDir,'/refs2.xsl')"/> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
141 <p:documentation> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
142 <div>Invert refs data into a map from cell to cells which point to it</div> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
143 </p:documentation> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
144 </p:load> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
145 |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
146 <p:xslt name="refs2"> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
147 <p:input port="source"> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
148 <p:pipe step="refs" port="result"/> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
149 </p:input> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
150 <p:input port="stylesheet"> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
151 <p:pipe step="ssr2" port="result"/> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
152 </p:input> |
a5125a2e77ea
towards inverted map of refs
Henry S. Thompson <ht@markup.co.uk>
parents:
19
diff
changeset
|
153 </p:xslt> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
154 |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
155 <p:load name="ssg"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
156 <p:with-option name="href" select="concat($elabDir,'/merge.xsl')"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
157 <p:documentation> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
158 <div>Combine rectangular array and inverted ref table</div> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
159 </p:documentation> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
160 </p:load> |
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
161 |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
162 <p:xslt name="merge"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
163 <p:input port="source"> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
164 <p:pipe step="rect" port="result"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
165 <p:pipe step="refs2" port="result"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
166 </p:input> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
167 <p:input port="stylesheet"> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
168 <p:pipe step="ssg" port="result"/> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
169 </p:input> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
170 </p:xslt> |
12
01e125d722be
widening scope so better names
Henry S. Thompson <ht@markup.co.uk>
parents:
10
diff
changeset
|
171 |
60
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
172 <p:load name="ssb"> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
173 <p:with-option name="href" select="concat($elabDir,'/backref.xsl')"/> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
174 <p:documentation> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
175 <div>Add backref info</div> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
176 </p:documentation> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
177 </p:load> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
178 |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
179 <p:xslt name="backref"> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
180 <p:input port="source"> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
181 <p:pipe step="merge" port="result"/> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
182 </p:input> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
183 <p:input port="stylesheet"> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
184 <p:pipe step="ssb" port="result"/> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
185 </p:input> |
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
186 </p:xslt> |
17
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
187 <p:choose> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
188 <p:when test="p:value-available('format')"> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
189 <p:load name="ss3"> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
190 <p:with-option name="href" select="concat($elabDir,'/',$format)"/> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
191 </p:load> |
19
9b1b169dc8db
use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
Henry S. Thompson <ht@markup.co.uk>
parents:
17
diff
changeset
|
192 <p:xslt name="fmt"> |
17
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
193 <p:input port="source"> |
60
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
194 <p:pipe step="backref" port="result"/> |
17
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
195 </p:input> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
196 <p:input port="stylesheet"> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
197 <p:pipe step="ss3" port="result"/> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
198 </p:input> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
199 </p:xslt> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
200 </p:when> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
201 <p:otherwise> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
202 <p:identity> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
203 <p:input port="source"> |
60
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
48
diff
changeset
|
204 <p:pipe step="backref" port="result"/> |
40
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
205 </p:input> |
ac6d1ca099f7
simplified rect output, refs (not refs2) working again
Henry S. Thompson <ht@markup.co.uk>
parents:
39
diff
changeset
|
206 </p:identity> |
17
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
207 </p:otherwise> |
a874f2a81ed2
default vis pipeline to raw xml, start extracting refs
Henry S. Thompson <ht@markup.co.uk>
parents:
15
diff
changeset
|
208 </p:choose> |
8
785187b9caef
working toward doing an ascii-rectangle repr of a sheet
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
209 </p:pipeline> |