Added handling of open-ended quotes.
[project-aon.git] / xml / xhtml.xsl
index 468f0c1..8156473 100644 (file)
@@ -9,6 +9,9 @@
 $Id$
 
 $Log$
+Revision 1.2  2005/04/09 19:51:50  angantyr
+Added handling of open-ended quotes.
+
 Revision 1.1  2005/01/30 01:32:52  jonathan.blake
 Initial freepository revision of XML support documents.
 
@@ -725,13 +728,13 @@ Todo:
 <xsl:template match="quote">
  <xsl:text>&apos;</xsl:text>
   <xsl:apply-templates />
- <xsl:text>&apos;</xsl:text>
+ <xsl:if test="not(self::*[@class='open-ended'])"><xsl:text>&apos;</xsl:text></xsl:if>
 </xsl:template>
 
 <xsl:template match="quote//quote">
  <xsl:text>&quot;</xsl:text>
   <xsl:apply-templates />
- <xsl:text>&quot;</xsl:text>
+ <xsl:if test="not(self::*[@class='open-ended'])"><xsl:text>&quot;</xsl:text></xsl:if>
 </xsl:template>
 
 <xsl:template match="cite">