]> granicus.if.org Git - docbook-dsssl/commitdiff
Add d:givename to inline.xsl
authorPeter Fleck <peterfleck@gmail.com>
Sat, 16 Sep 2017 10:20:01 +0000 (12:20 +0200)
committerbobstayton <bobs@sagehill.net>
Thu, 7 Jun 2018 18:46:16 +0000 (11:46 -0700)
xsl/fo/inline.xsl
xsl/html/inline.xsl

index bbe2bb7c43c3d7b910c107a0251952ad0f1f1026..d9dfa31ace08298c7c09556d2be9e0c26c55bd7e 100644 (file)
 </xsl:template>
 
 <!-- in Addresses, for example -->
-<xsl:template match="d:honorific|d:firstname|d:surname|d:lineage|d:othername">
+<xsl:template match="d:honorific|d:firstname|d:givenname|d:surname|d:lineage|d:othername">
   <xsl:call-template name="inline.charseq"/>
 </xsl:template>
 
index e5844e0eaa690772bcf8183c0eeb4d91c158e2c0..cfa0c8c965d689f44e8f39867ed7574c847b04ef 100644 (file)
@@ -64,8 +64,8 @@
 
   <xsl:variable name="link">
     <xsl:choose>
-      <xsl:when test="$xhref and 
-                      (not($node/@xlink:type) or 
+      <xsl:when test="$xhref and
+                      (not($node/@xlink:type) or
                            $node/@xlink:type='simple')">
 
         <!-- Is it a local idref or a uri? -->
                   </xsl:attribute>
                 </xsl:when>
               </xsl:choose>
-              
+
               <xsl:copy-of select="$content"/>
             </a>
           </xsl:otherwise>
           <xsl:apply-templates select="$target" mode="html.title.attribute"/>
 
           <xsl:copy-of select="$content"/>
-          
+
         </a>
       </xsl:when>
       <xsl:otherwise>
     <xsl:call-template name="locale.html.attributes"/>
     <!-- We don't want empty @class values, so do not propagate empty @roles -->
     <xsl:choose>
-      <xsl:when test="@role and 
+      <xsl:when test="@role and
                      normalize-space(@role) != '' and
                      $phrase.propagates.style != 0">
         <xsl:apply-templates select="." mode="class.attribute">
 </xsl:template>
 
 <!-- in Addresses, for example -->
-<xsl:template match="d:honorific|d:firstname|d:surname|d:lineage|d:othername">
+<xsl:template match="d:honorific|d:firstname|d:givenname|d:surname|d:lineage|d:othername">
   <xsl:call-template name="inline.charseq"/>
 </xsl:template>
 
 </xsl:template>
 
 </xsl:stylesheet>
-