]> granicus.if.org Git - docbook-dsssl/commitdiff
Added support for author/orgname in document metadata. Closes bug #3132862.
authorMauritz Jeanson <mj@johanneberg.com>
Sun, 27 Mar 2011 07:41:25 +0000 (07:41 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sun, 27 Mar 2011 07:41:25 +0000 (07:41 +0000)
xsl/fo/axf.xsl
xsl/fo/fop1.xsl
xsl/fo/xep.xsl

index f74c52523b84fc593f7915587b9dd0e684807920..0dda873a4e59c7ce13b5e1acf53212f77687e69d 100644 (file)
@@ -24,6 +24,9 @@
           </xsl:when>
           <xsl:when test="$authors[self::corpauthor]">
             <xsl:value-of select="$authors"/>
+          </xsl:when>
+           <xsl:when test="$authors[orgname]">
+            <xsl:value-of select="$authors/orgname"/>
           </xsl:when>
           <xsl:otherwise>
             <xsl:call-template name="person.name">
index e3c6f3ed43d9cc6fd5e5b4a4779d45b3f24cd0ef..bb1ead6ed0b4232a94f3b4b0a406a7eb2bcf1d17 100644 (file)
                 <xsl:when test="$authors[self::corpauthor]">
                   <xsl:value-of select="$authors"/>
                 </xsl:when>
+                <xsl:when test="$authors[orgname]">
+                  <xsl:value-of select="$authors/orgname"/>
+                </xsl:when>
                 <xsl:otherwise>
                   <xsl:call-template name="person.name">
                     <xsl:with-param name="node" select="$authors"/>
index 0910fb3759fd3ad9018cf4dfb69a7ddd75063f6a..fdcbd7478d620dc42315d61d5356f5e043be56e9 100644 (file)
@@ -33,6 +33,9 @@
           <xsl:when test="$authors[self::corpauthor]">
             <xsl:value-of select="$authors"/>
           </xsl:when>
+          <xsl:when test="$authors[orgname]">
+            <xsl:value-of select="$authors/orgname"/>
+          </xsl:when>
           <xsl:otherwise>
             <xsl:call-template name="person.name">
               <xsl:with-param name="node" select="$authors"/>
      Pdf bookmarks
      ******************************************************************** -->
 
+<xsl:variable name="collapse.subtree">
+  <xsl:choose>
+    <xsl:when test="$bookmarks.collapse != 0">true</xsl:when>
+    <xsl:otherwise>false</xsl:otherwise>
+  </xsl:choose>
+</xsl:variable>
+
 <xsl:template match="*" mode="xep.outline">
   <xsl:apply-templates select="*" mode="xep.outline"/>
 </xsl:template>
     <xsl:when test="self::index and $generate.index = 0"/>     
     <xsl:when test="parent::*">
       <rx:bookmark internal-destination="{$id}">
+       <xsl:attribute name="collapse-subtree">
+         <xsl:value-of select="$collapse.subtree"/>
+       </xsl:attribute>
         <rx:bookmark-label>
           <xsl:value-of select="normalize-space($bookmark-label)"/>
         </rx:bookmark-label>
     <xsl:otherwise>
       <xsl:if test="$bookmark-label != ''">
         <rx:bookmark internal-destination="{$id}">
+         <xsl:attribute name="collapse-subtree">
+           <xsl:value-of select="$collapse.subtree"/>
+         </xsl:attribute>
           <rx:bookmark-label>
             <xsl:value-of select="normalize-space($bookmark-label)"/>
           </rx:bookmark-label>