|
17
|
1 <?xml version='1.0'?>
|
|
|
2 <!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" >
|
|
54
|
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:x="http://www.w3.org/1999/xhtml" exclude-result-prefixes="x" xmlns="http://www.w3.org/1999/xhtml">
|
|
17
|
4
|
|
54
|
5 <xsl:output method="xhtml"/>
|
|
|
6
|
|
|
7 <xsl:template match="x:p[not(text())]"/><!-- These mess up the count later -->
|
|
17
|
8
|
|
|
9 <xsl:template match="node()|@*">
|
|
|
10 <xsl:copy>
|
|
|
11 <xsl:apply-templates select="node()|@*"/>
|
|
|
12 </xsl:copy>
|
|
|
13 </xsl:template>
|
|
|
14
|
|
54
|
15 <xsl:template match="x:div[@class='div3']">
|
|
|
16 <!-- Doc elt.
|
|
|
17 Collect the splayed out questions at the beginning of each Question
|
|
|
18 (Loses some empty <a...> at the beginning -->
|
|
17
|
19 <xsl:copy>
|
|
|
20 <xsl:apply-templates select="@*"/>
|
|
|
21 <xsl:text> </xsl:text>
|
|
54
|
22 <xsl:apply-templates select="x:h3"/>
|
|
17
|
23 <xsl:text> </xsl:text>
|
|
54
|
24 <div class="div4">
|
|
17
|
25 <xsl:text> </xsl:text>
|
|
54
|
26 <xsl:apply-templates select="x:p"/>
|
|
17
|
27 <xsl:text> </xsl:text>
|
|
|
28 </div>
|
|
|
29 <xsl:text> </xsl:text>
|
|
54
|
30 <xsl:apply-templates select="x:div"/>
|
|
17
|
31 </xsl:copy>
|
|
|
32 </xsl:template>
|
|
|
33 </xsl:stylesheet>
|