[yelp-xsl] [db-common] Ignore personname wrapper for DocBook 5



commit ebf3a1306b22d4616dea1b6e6dcdf05590db4bcd
Author: brian m. carlson <sandals crustytoothpaste ath cx>
Date:   Sat Apr 10 22:06:23 2010 +0000

    [db-common] Ignore personname wrapper for DocBook 5
    
    DocBook 5 doesn't allow unadorned name components (e.g. surname) anymore.  These
    are present in a personname element, so when we see that when we're generating a
    personal name, don't actually emit the personname element, only its contents.
    
    Signed-off-by: brian m. carlson <sandals crustytoothpaste ath cx>

 xslt/docbook/common/db-common.xsl |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/xslt/docbook/common/db-common.xsl b/xslt/docbook/common/db-common.xsl
index 1415b19..9348fb1 100644
--- a/xslt/docbook/common/db-common.xsl
+++ b/xslt/docbook/common/db-common.xsl
@@ -199,6 +199,12 @@ assembles those into a string.
   <xsl:param name="lang" select="ancestor-or-self::*[ lang][1]/@lang |
                                  ancestor-or-self::*[ xml:lang][1]/@xml:lang"/>
 
+  <xsl:if test="$node/db:personname">
+    <xsl:call-template name="db.personname">
+      <xsl:with-param name="node" select="$node/db:personname"/>
+      <xsl:with-param name="lang" select="$lang"/>
+    </xsl:call-template>
+  </xsl:if>
   <!-- FIXME: Use xsl:choose for different language rules -->
   <xsl:if test="$node/honorific or $node/db:honorific">
     <xsl:apply-templates select="$node/honorific[1] | $node/db:honorific[1]"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]