view english_prep.xsl @ 137:de4b1e200500 default tip

from https://archive.org/details/AquinasLexicon/mode/2up
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 03 May 2025 22:47:32 +0100
parents d3a06d7753d9
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="1.0">
 
 <xsl:output doctype-system="../../dtd/ThML10.dtd"/>
 
 <xsl:template match="/">
  <xsl:text>&#10;</xsl:text>
  <xsl:processing-instruction name="xml-stylesheet">type="text/xsl" href="bi.xsl"</xsl:processing-instruction>
  <xsl:apply-templates select="node()"/>
 </xsl:template>
 <xsl:template match="p[text()]">
  <div class="bilingual">
   <xsl:text>&#10;</xsl:text>
   <xsl:copy>
    <xsl:attribute name="xml:lang">en</xsl:attribute>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
   <xsl:text>&#10;</xsl:text>
  </div>
 </xsl:template>
 
 <xsl:template match="p"/>
 
 <xsl:template match="h1|h2|h3|h4|h5">
  <xsl:copy>
   <xsl:attribute name="xml:lang">en</xsl:attribute>
   <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>  
 </xsl:template>
 
 <xsl:template match="@*|node()">
  <xsl:copy>
   <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
 </xsl:template>
</xsl:stylesheet>