view summa/english/split.xsl @ 136:60238bcde177

Through Q18
author ht
date Sun, 02 Feb 2025 15:17:05 +0000
parents 093a560860d9
children
line wrap: on
line source

<?xml version='1.0'?>
<!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" >
<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">
 
 <xsl:output method="xhtml" indent="no"/>
 
 <xsl:template match="x:div[@class='div2']">
  <xsl:variable name="name" select="translate(@id,'.','_')"/>
  <xsl:message>f: <xsl:value-of select="$name"/>|<xsl:value-of select="count(x:div)"/></xsl:message>
  <xi:include href="{$name}.html"/>
    <xsl:result-document method="xhtml" href="{$name}.html">
     <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>`
     </xsl:copy>
    </xsl:result-document>
 </xsl:template>
 
 <xsl:template match="node()|@*">
  <xsl:copy>
   <xsl:apply-templates select="node()|@*"/>
  </xsl:copy>
 </xsl:template>
</xsl:stylesheet>