|
52
|
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="2.0" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:x="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="x">
|
|
|
4
|
|
|
5 <xsl:output method="xhtml" indent="no"/>
|
|
|
6
|
|
55
|
7 <xsl:template match="x:div[@class='div2']">
|
|
|
8 <xsl:variable name="name" select="translate(@id,'.','_')"/>
|
|
|
9 <xsl:message>f: <xsl:value-of select="$name"/>|<xsl:value-of select="count(x:div)"/></xsl:message>
|
|
|
10 <xi:include href="{$name}.html"/>
|
|
52
|
11 <xsl:result-document method="xhtml" href="{$name}.html">
|
|
55
|
12 <xsl:copy>
|
|
|
13 <xsl:apply-templates select="@*|node()"/>`
|
|
|
14 </xsl:copy>
|
|
52
|
15 </xsl:result-document>
|
|
|
16 </xsl:template>
|
|
|
17
|
|
|
18 <xsl:template match="node()|@*">
|
|
|
19 <xsl:copy>
|
|
|
20 <xsl:apply-templates select="node()|@*"/>
|
|
|
21 </xsl:copy>
|
|
|
22 </xsl:template>
|
|
|
23 </xsl:stylesheet>
|