Fix content model listing when text content is allowed.
authorCameron McCormack <cam@mcc.id.au>
Mon, 30 Jul 2012 11:16:33 +1000
changeset 31 1f6f1e11046e
parent 30 74884712dfc7
child 32 efabca925844
Fix content model listing when text content is allowed.
publish.xsl
--- a/publish.xsl	Wed Jul 25 01:40:33 2012 +1000
+++ b/publish.xsl	Mon Jul 30 11:16:33 2012 +1000
@@ -1127,7 +1127,7 @@
                 <xsl:apply-templates select='x:contentmodel/node()'/>
               </xsl:when>
               <xsl:when test='@contentmodel=("textoranyof", "anyof", "oneormoreof")'>
-                <xsl:value-of select='if (@contentmodel="oneormoreof") then "One or more" else "Any number"'/> of the following elements<xsl:if test='textoranyof'> or character data</xsl:if>, in any order:
+                <xsl:value-of select='if (@contentmodel="oneormoreof") then "One or more" else "Any number"'/> of the following elements<xsl:if test='@contentmodel="textoranyof"'> or character data</xsl:if>, in any order:
                 <ul class='no-bullets'>
                   <xsl:for-each select='tokenize(@elementcategories, ", ")'>
                     <xsl:variable name='category' select='$defs/x:elementcategory[@name=current()]'/>