|
1
|
1 <?xml version='1.0'?>
|
|
45
|
2 <!DOCTYPE xsl:stylesheet SYSTEM "../../../../lib/xml/xsl.dtd" >
|
|
69
|
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">
|
|
|
4
|
|
|
5 <xsl:template match="x:a[@href and not(text())]"/>
|
|
|
6
|
|
|
7 <xsl:template match="x:h3">
|
|
|
8 <xsl:copy>
|
|
|
9 <xsl:apply-templates select="@*"/>
|
|
|
10 <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../@id,'FP_Q')"/><xsl:text>. </xsl:text>
|
|
|
11 <xsl:apply-templates/>
|
|
|
12 </xsl:copy>
|
|
1
|
13 </xsl:template>
|
|
|
14
|
|
69
|
15 <xsl:template match="x:h4">
|
|
|
16 <xsl:copy>
|
|
|
17 <xsl:apply-templates select="@*"/>
|
|
|
18 <xsl:text>Q. </xsl:text><xsl:value-of select="substring-after(../../@id,'FP_Q')"/><xsl:text>. A. </xsl:text>
|
|
|
19 <xsl:value-of select="substring-after(../@id,'_A')"/>
|
|
|
20 <xsl:text>. </xsl:text>
|
|
|
21 <xsl:apply-templates/>
|
|
|
22 </xsl:copy>
|
|
1
|
23 </xsl:template>
|
|
|
24
|
|
69
|
25 <xsl:template match="x:div[@class='bilingual']">
|
|
|
26 <xsl:copy>
|
|
|
27 <xsl:apply-templates select="@*"/>
|
|
|
28 <div class="eng"><xsl:apply-templates select="*[1]"/></div>
|
|
|
29 <div class="lat"><xsl:apply-templates select="*[2]"/></div>
|
|
|
30 </xsl:copy>
|
|
1
|
31 </xsl:template>
|
|
|
32
|
|
69
|
33 <xsl:template match="node()|@*">
|
|
1
|
34 <xsl:copy>
|
|
|
35 <xsl:apply-templates select="node()|@*"/>
|
|
|
36 </xsl:copy>
|
|
|
37 </xsl:template>
|
|
|
38 </xsl:stylesheet>
|