annotate summa/bilingual/bi.xsl @ 69:52063d0f8985

modified to work in merge.xpl
author ht
date Sun, 03 Jan 2010 18:46:39 +0000
parents a768840ee9ff
children 3dd981256764
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
1 <?xml version='1.0'?>
45
a768840ee9ff correct dtd
ht
parents: 11
diff changeset
2 <!DOCTYPE xsl:stylesheet SYSTEM "../../../../lib/xml/xsl.dtd" >
69
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:x="http://www.w3.org/1999/xhtml">
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
4
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
5 <xsl:template match="x:a[@href and not(text())]"/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
6
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
7 <xsl:template match="x:h3">
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
8 <xsl:copy>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
9 <xsl:apply-templates select="@*"/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
10 <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../@id,'FP_Q')"/><xsl:text>. </xsl:text>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
11 <xsl:apply-templates/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
12 </xsl:copy>
1
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
13 </xsl:template>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
14
69
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
15 <xsl:template match="x:h4">
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
16 <xsl:copy>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
17 <xsl:apply-templates select="@*"/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
18 <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../../@id,'FP_Q')"/><xsl:text>. A. </xsl:text>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
19 <xsl:value-of select="substring-after(../@id,'_A')"/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
20 <xsl:text>. </xsl:text>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
21 <xsl:apply-templates/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
22 </xsl:copy>
1
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
23 </xsl:template>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
24
69
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
25 <xsl:template match="x:div[@class='bilingual']">
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
26 <xsl:copy>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
27 <xsl:apply-templates select="@*"/>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
28 <div class="eng"><xsl:apply-templates select="*[1]"/></div>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
29 <div class="lat"><xsl:apply-templates select="*[2]"/></div>
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
30 </xsl:copy>
1
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
31 </xsl:template>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
32
69
52063d0f8985 modified to work in merge.xpl
ht
parents: 45
diff changeset
33 <xsl:template match="node()|@*">
1
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
34 <xsl:copy>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
35 <xsl:apply-templates select="node()|@*"/>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
36 </xsl:copy>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
37 </xsl:template>
d3a06d7753d9 *** empty log message ***
ht
parents:
diff changeset
38 </xsl:stylesheet>