|
1
|
1 <?xml version='1.0'?>
|
|
|
2 <!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" >
|
|
|
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
4
|
|
|
5 <xsl:output doctype-system="../../dtd/ThML10.dtd"/>
|
|
|
6
|
|
|
7 <xsl:template match="/">
|
|
|
8 <xsl:text> </xsl:text>
|
|
|
9 <xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="bi.xsl"</xsl:processing-instruction>
|
|
|
10 <xsl:apply-templates select="node()"/>
|
|
|
11 </xsl:template>
|
|
|
12 <xsl:template match="p[text()]">
|
|
|
13 <div class="bilingual">
|
|
|
14 <xsl:text> </xsl:text>
|
|
|
15 <xsl:copy>
|
|
|
16 <xsl:attribute name="xml:lang">en</xsl:attribute>
|
|
|
17 <xsl:apply-templates select="@*|node()"/>
|
|
|
18 </xsl:copy>
|
|
|
19 <xsl:text> </xsl:text>
|
|
|
20 </div>
|
|
|
21 </xsl:template>
|
|
|
22
|
|
|
23 <xsl:template match="p"/>
|
|
|
24
|
|
|
25 <xsl:template match="h1|h2|h3|h4|h5">
|
|
|
26 <xsl:copy>
|
|
|
27 <xsl:attribute name="xml:lang">en</xsl:attribute>
|
|
|
28 <xsl:apply-templates select="@*|node()"/>
|
|
|
29 </xsl:copy>
|
|
|
30 </xsl:template>
|
|
|
31
|
|
|
32 <xsl:template match="@*|node()">
|
|
|
33 <xsl:copy>
|
|
|
34 <xsl:apply-templates select="@*|node()"/>
|
|
|
35 </xsl:copy>
|
|
|
36 </xsl:template>
|
|
|
37 </xsl:stylesheet>
|