Text illustrations need inclusion
authorJonathan Blake <jonathan.blake@projectaon.org>
Thu, 7 Dec 2006 01:42:28 +0000 (01:42 +0000)
committerJonathan Blake <jonathan.blake@projectaon.org>
Thu, 7 Dec 2006 01:42:28 +0000 (01:42 +0000)
git-svn-id: https://projectaon.org/data/trunk@199 f6f3e2d7-ff33-0410-aaf5-b4bee2cdac11

xml/xhtml-mongoose.xsl

index 9c252af..f5ff53a 100644 (file)
@@ -9,6 +9,9 @@
 $Id$
 
 $Log$
+Revision 1.3  2006/12/07 01:42:28  jonathan.blake
+Text illustrations need inclusion
+
 Revision 1.2  2006/11/25 18:57:16  jonathan.blake
 Fixed links to footnotes
 
@@ -852,19 +855,24 @@ Todo:
 </xsl:template>
 
 <xsl:template match="illustration">
- <xsl:if test="instance[@class='html'] and contains( $use-illustrators, concat( ':', meta/creator, ':' ) )">
-  <xsl:choose>
-   <xsl:when test="@class='float'">
-    <div class="illustration">
-     <xsl:text>[[Illustration </xsl:text>
-     <xsl:number count="illustration[@class='float' and contains( $use-illustrators, concat( ':', meta/creator, ':' ) )]" from="/" level="any" format="I" />
-     <xsl:text>]]</xsl:text>
-    </div><xsl:value-of select="$newline" />
-   </xsl:when>
-
-   <xsl:otherwise></xsl:otherwise>
-  </xsl:choose>
- </xsl:if>
+ <xsl:choose>
+  <xsl:when test="instance[@class='text'] and contains( $use-illustrators, concat( ':', meta/creator, ':' ) )">
+   <xsl:apply-templates select="instance[@class='text']/*"/>
+  </xsl:when>
+  <xsl:when test="instance[@class='html'] and contains( $use-illustrators, concat( ':', meta/creator, ':' ) )">
+   <xsl:choose>
+    <xsl:when test="@class='float'">
+     <div class="illustration">
+      <xsl:text>[[Illustration </xsl:text>
+      <xsl:number count="illustration[@class='float' and contains( $use-illustrators, concat( ':', meta/creator, ':' ) )]" from="/" level="any" format="I" />
+      <xsl:text>]]</xsl:text>
+     </div><xsl:value-of select="$newline" />
+    </xsl:when>
+    <xsl:otherwise></xsl:otherwise>
+   </xsl:choose>
+  </xsl:when>
+  <xsl:otherwise></xsl:otherwise>
+ </xsl:choose>
 </xsl:template>
 
 <xsl:template match="instance" />