Mercurial > hg > ooxml
annotate backref.xsl @ 73:4bd5de7ac247
added Range, M and RC
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 03 Jul 2017 16:25:49 +0100 |
parents | 588cb9ba7c9c |
children |
rev | line source |
---|---|
59
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
1 <?xml version='1.0'?> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
2 <!DOCTYPE doc SYSTEM "../../../lib/xml/xsl.dtd" > |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:s="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:e="http://markup.co.uk/excel" exclude-result-prefixes="xs s xpf e" xmlns="http://www.w3.org/1999/xhtml" xmlns:xpf="http://www.w3.org/2005/xpath-functions"> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
4 |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
5 <xsl:import href="n2a.xsl"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
6 |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
7 <xsl:key name="fcell" match="e:c[@fi]" use="@r"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
8 |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
9 <xsl:template match="e:i"> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
10 <xsl:variable name="row" select="../../@r"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
11 <xsl:variable name="col" select="../@c"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
12 <xsl:variable name="r" select="concat(e:n2a($col),$row)"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
13 <xsl:variable name="ris" select="for $r in e:r/text() |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
14 return key('fcell',$r)/@fi"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
15 <xsl:copy> |
60
588cb9ba7c9c
display of reffed info via colour minimally working
Henry S. Thompson <ht@markup.co.uk>
parents:
59
diff
changeset
|
16 <xsl:attribute name="ri"><xsl:value-of select="string-join($ris,'_')"/></xsl:attribute> |
59
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
17 <xsl:apply-templates select="node()|@*"/> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
18 </xsl:copy> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
19 </xsl:template> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
20 |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
21 <xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
22 </xsl:template> |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
23 |
f90bbd38b8f6
towards display of reffed info via colour
Henry S. Thompson <ht@markup.co.uk>
parents:
diff
changeset
|
24 </xsl:stylesheet> |