Added handling of open-ended quotes.
authorThomas Wolmer <thomas.wolmer@projectaon.org>
Sat, 9 Apr 2005 19:51:50 +0000 (19:51 +0000)
committerThomas Wolmer <thomas.wolmer@projectaon.org>
Sat, 9 Apr 2005 19:51:50 +0000 (19:51 +0000)
git-svn-id: https://projectaon.org/data/trunk@47 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

xml/latex.xsl
xml/pml.xsl
xml/xhtml-pda.xsl
xml/xhtml.xsl

index 5f01f96..e362a52 100644 (file)
@@ -17,6 +17,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.
 
@@ -938,13 +941,13 @@ The implementation of tables is incomplete and kludgy.
 <xsl:template match="quote">
  <xsl:text>&lsquot;</xsl:text>
   <xsl:apply-templates />
- <xsl:text>&rsquot;</xsl:text>
+ <xsl:if test="not(self::*[@class='open-ended'])"><xsl:text>&rsquot;</xsl:text></xsl:if>
 </xsl:template>
 
 <xsl:template match="quote//quote">
  <xsl:text>&ldquot;</xsl:text>
   <xsl:apply-templates />
- <xsl:text>&rdquot;</xsl:text>
+ <xsl:if test="not(self::*[@class='open-ended'])"><xsl:text>&rdquot;</xsl:text></xsl:if>
 </xsl:template>
 
 <xsl:template match="code">
index bdaf32a..4ae0a3d 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.
 
@@ -696,13 +699,13 @@ Restarted work from base xhtml.xsl.
 <xsl:template match="quote">
  <xsl:text>&lsquot;</xsl:text>
   <xsl:apply-templates />
- <xsl:text>&rsquot;</xsl:text>
+ <xsl:if test="not(self::*[@class='open-ended'])"><xsl:text>&rsquot;</xsl:text></xsl:if>
 </xsl:template>
 
 <xsl:template match="quote//quote">
  <xsl:text>&ldquot;</xsl:text>
   <xsl:apply-templates />
- <xsl:text>&rdquot;</xsl:text>
+ <xsl:if test="not(self::*[@class='open-ended'])"><xsl:text>&rdquot;</xsl:text></xsl:if>
 </xsl:template>
 
 <xsl:template match="code">
index 519a180..1ad27a6 100644 (file)
@@ -8,6 +8,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.
 
@@ -622,13 +625,13 @@ Initial revision
 <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">
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">