]> granicus.if.org Git - docbook-dsssl/commitdiff
Change the docbook db: prefix to d: prefix in preparation of svn update to namespaced
authorBob Stayton <bobs@sagehill.net>
Thu, 13 Feb 2014 03:35:53 +0000 (03:35 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 13 Feb 2014 03:35:53 +0000 (03:35 +0000)
stylesheets.

xsl/slides/common/common.xsl
xsl/slides/fo/plain.xsl
xsl/slides/xhtml/plain.xsl
xsl/slides/xhtml/s5.xsl
xsl/slides/xhtml/slidy.xsl

index 2d4f9e9f416f8970a302367597c279a7148e7400..32155178ac1b5aeef229c5abeff3b58f6132cab5 100644 (file)
@@ -8,12 +8,12 @@
 <xsl:template name="get.title">
   <xsl:param name="ctx" select="."/>
 
-  <xsl:value-of select="($ctx/db:info/db:titleabbrev|$ctx/db:titleabbrev|$ctx/db:info/db:title|$ctx/db:title)[1]"/>
+  <xsl:value-of select="($ctx/d:info/d:titleabbrev|$ctx/d:titleabbrev|$ctx/d:info/d:title|$ctx/d:title)[1]"/>
 </xsl:template>
 
 <xsl:template name="get.subtitle">
   <xsl:param name="ctx" select="."/>
 
-  <xsl:value-of select="($ctx/db:info/db:subtitle|$ctx/db:subtitle)[1]"/>
+  <xsl:value-of select="($ctx/d:info/d:subtitle|$ctx/d:subtitle)[1]"/>
 </xsl:template>
 </xsl:stylesheet>
index 40217ea998ed7d1a34acfe6da458580c5921210b..bcd4e6508267fe76a61d8c7b6c741834a507c684 100644 (file)
   </fo:bookmark>
 </xsl:template>
 
-<xsl:template match="db:author" mode="titlepage.mode">
+<xsl:template match="d:author" mode="titlepage.mode">
   <fo:block>
-    <xsl:apply-templates select="db:personname" mode="titlepage.mode"/>
+    <xsl:apply-templates select="d:personname" mode="titlepage.mode"/>
   </fo:block>
 
   <fo:block>
-    <xsl:apply-templates select="db:affiliation" mode="titlepage.mode"/>
+    <xsl:apply-templates select="d:affiliation" mode="titlepage.mode"/>
   </fo:block>
 
   <fo:block>
-    <xsl:apply-templates select="db:email" mode="titlepage.mode"/>
+    <xsl:apply-templates select="d:email" mode="titlepage.mode"/>
   </fo:block>
 </xsl:template>
 
       <fo:block xsl:use-attribute-sets="foil.properties">
        <xsl:choose>
          <xsl:when test="$mode = 'normal'">
-           <xsl:apply-templates select="*[not(self::dbs:foil)][not(self::db:info)][not(self::db:title)][not(self::db:titleabbrev)][not(self::db:subtitle)][not(self::dbs:speakernotes)][not(self::dbs:handoutnotes)]"/>
+           <xsl:apply-templates select="*[not(self::dbs:foil)][not(self::d:info)][not(self::d:title)][not(self::d:titleabbrev)][not(self::d:subtitle)][not(self::dbs:speakernotes)][not(self::dbs:handoutnotes)]"/>
 
            <xsl:if test="self::dbs:foilgroup and ($generate.foilgroup.toc != 0)">
              <xsl:call-template name="foilgroup.generate.toc"/>
 </xsl:template>
 
 <xsl:template name="footer.center">
-  <xsl:if test="($generate.copyright != 0) and /dbs:slides/db:info/db:copyright">
+  <xsl:if test="($generate.copyright != 0) and /dbs:slides/d:info/d:copyright">
     <fo:block>
       <xsl:call-template name="gentext">
        <xsl:with-param name="key" select="'Copyright'"/>
       <xsl:call-template name="gentext.space"/>
       <xsl:text>&#xa9;</xsl:text>
       <xsl:call-template name="gentext.space"/>
-      <xsl:value-of select="/dbs:slides/db:info/db:copyright/db:year"/>
+      <xsl:value-of select="/dbs:slides/d:info/d:copyright/d:year"/>
       <xsl:call-template name="gentext.space"/>
-      <xsl:value-of select="/dbs:slides/db:info/db:copyright/db:holder"/>
+      <xsl:value-of select="/dbs:slides/d:info/d:copyright/d:holder"/>
     </fo:block>
   </xsl:if>
 
-  <xsl:if test="($generate.pubdate != 0) and /dbs:slides/db:info/db:pubdate">
+  <xsl:if test="($generate.pubdate != 0) and /dbs:slides/d:info/d:pubdate">
     <xsl:call-template name="slide.pubdate"/>
   </xsl:if>
 </xsl:template>
       <xsl:with-param name="key" select="'Published'"/>
     </xsl:call-template>
     <xsl:text>: </xsl:text>
-    <xsl:value-of select="/dbs:slides/db:info/db:pubdate"/>
+    <xsl:value-of select="/dbs:slides/d:info/d:pubdate"/>
   </fo:block>
 </xsl:template>
 
index 05d5e5122bd850031de995fad9138728fa384c61..55f05a60d2de9b650969aa33af44eb100f7fffca 100644 (file)
   </div>
 </xsl:template>
 
-<xsl:template match="db:info">
-  <xsl:apply-templates select="db:title|db:titleabbrev|db:subtitle|db:author|db:authorgroup/db:author"/>
+<xsl:template match="d:info">
+  <xsl:apply-templates select="d:title|d:titleabbrev|d:subtitle|d:author|d:authorgroup/d:author"/>
 </xsl:template>
 
-<xsl:template match="db:title|db:titleabbrev">
-  <xsl:if test="not(self::db:title) or (not(preceding-sibling::db:titleabbrev) and not(following-sibling::db:titleabbrev))">
+<xsl:template match="d:title|d:titleabbrev">
+  <xsl:if test="not(self::d:title) or (not(preceding-sibling::d:titleabbrev) and not(following-sibling::d:titleabbrev))">
     <h1 class="title"><xsl:value-of select="."/></h1>
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="db:subtitle">
+<xsl:template match="d:subtitle">
   <h1 class="subtitle"><xsl:value-of select="."/></h1>
 </xsl:template>
 
-<xsl:template match="db:author">
-  <h3 class="author"><xsl:apply-templates select="db:personname|db:orgname"/></h3>
-  <h4 class="email"><xsl:apply-templates select="db:email"/></h4>
-  <xsl:if test="db:affiliation">
-    <h4 class="affiliation"><xsl:value-of select="db:affiliation"/></h4>
+<xsl:template match="d:author">
+  <h3 class="author"><xsl:apply-templates select="d:personname|d:orgname"/></h3>
+  <h4 class="email"><xsl:apply-templates select="d:email"/></h4>
+  <xsl:if test="d:affiliation">
+    <h4 class="affiliation"><xsl:value-of select="d:affiliation"/></h4>
   </xsl:if>
 </xsl:template>
 
-<xsl:template match="db:email">
+<xsl:template match="d:email">
   <a>
     <xsl:attribute name="href">
       <xsl:text>mailto:</xsl:text><xsl:value-of select="."/>
   <xsl:apply-templates select="*"/>
 </xsl:template>
 
-<xsl:template match="db:itemizedlist">
+<xsl:template match="d:itemizedlist">
   <ul>
     <xsl:call-template name="list.content"/>
   </ul>
 </xsl:template>
 
-<xsl:template match="db:orderedlist">
+<xsl:template match="d:orderedlist">
   <ol>
     <xsl:call-template name="list.content"/>
   </ol>
 </xsl:template>
 
-<xsl:template match="db:mediaobject">
+<xsl:template match="d:mediaobject">
   <xsl:variable name="classValue">
     <xsl:call-template name="process.dbs.attributes">
       <xsl:with-param name="attributeSet" select="(ancestor-or-self::*/@dbs:incremental)[last()] | (ancestor-or-self::*/@dbs:collapsible)[last()] | self::*/@dbs:style"/>
   </xsl:variable>
 
   <div class="{$classValue}">
-    <xsl:apply-templates select="db:imageobject[1]"/>
+    <xsl:apply-templates select="d:imageobject[1]"/>
   </div>
 </xsl:template>
 
 <xsl:template name="bibliography.titlepage"/>
 
-<xsl:template match="db:bibliosource" mode="bibliography.mode">
+<xsl:template match="d:bibliosource" mode="bibliography.mode">
   <span>
     <xsl:call-template name="common.html.attributes"/>
     <xsl:call-template name="id.attribute"/>
     <xsl:call-template name="gentext.space"/>
     <xsl:text>&#xa9;</xsl:text>
     <xsl:call-template name="gentext.space"/>
-    <xsl:value-of select="/dbs:slides/db:info/db:copyright/db:year"/>
+    <xsl:value-of select="/dbs:slides/d:info/d:copyright/d:year"/>
     <xsl:call-template name="gentext.space"/>
-    <xsl:value-of select="/dbs:slides/db:info/db:copyright/db:holder"/>
+    <xsl:value-of select="/dbs:slides/d:info/d:copyright/d:holder"/>
   </div>
 </xsl:template>
 
       <xsl:with-param name="key" select="'Published'"/>
     </xsl:call-template>
     <xsl:text>: </xsl:text>
-    <xsl:value-of select="/dbs:slides/db:info/db:pubdate"/>
+    <xsl:value-of select="/dbs:slides/d:info/d:pubdate"/>
   </div>
 </xsl:template>
 
 <xsl:template match="/" mode="slide.header.mode"/>
 
 <xsl:template match="/" mode="slide.footer.mode">
-  <xsl:if test="($generate.copyright != 0) and /dbs:slides/db:info/db:copyright">
+  <xsl:if test="($generate.copyright != 0) and /dbs:slides/d:info/d:copyright">
     <xsl:call-template name="slide.copyright"/>
   </xsl:if>
-  <xsl:if test="($generate.pubdate != 0) and /dbs:slides/db:info/db:pubdate">
+  <xsl:if test="($generate.pubdate != 0) and /dbs:slides/d:info/d:pubdate">
     <xsl:call-template name="slide.pubdate"/>
   </xsl:if>
 </xsl:template>
index 9447db3ecbe91499d8094cfdfc0c977e35e0a50b..beeade6dd7ec0fb10b47f89d5d40c3bbafe97e71 100644 (file)
@@ -50,7 +50,7 @@
   </div>
 </xsl:template>
 
-<xsl:template match="db:xref">
+<xsl:template match="d:xref">
   <xsl:variable name="target" select="id(./@linkend)"/>
 
   <xsl:choose>
   </xsl:choose>
 </xsl:template>
 
-<xsl:template match="db:biblioentry" mode="xref-to">
+<xsl:template match="d:biblioentry" mode="xref-to">
   <xsl:variable name="id" select="@xml:id"/>
 
   <xsl:choose>
     <xsl:when test="$bibliography.numbered != 0">
-      <xsl:number from="db:bibliography" count="db:biblioentry|db:bibliomixed" level="any" format="1"/>
+      <xsl:number from="d:bibliography" count="d:biblioentry|d:bibliomixed" level="any" format="1"/>
     </xsl:when>
 
     <xsl:otherwise>
@@ -80,7 +80,7 @@
   </xsl:choose>
 </xsl:template>
 
-<xsl:template match="db:mediaobject">
+<xsl:template match="d:mediaobject">
   <p>
     <xsl:if test="@dbs:style">
       <xsl:attribute name="class">
index d286c553d170b09d31976a80f9b3d026a83e1597..124aae72cef8e58b93d98d9a1cc0b82e2b81c9f2 100644 (file)
@@ -13,7 +13,7 @@
 <xsl:template name="xhtml.head">
   <meta name="copyright">
     <xsl:attribute name="content">
-      <xsl:if test="/dbs:slides/db:info/db:copyright">
+      <xsl:if test="/dbs:slides/d:info/d:copyright">
        <xsl:call-template name="slide.copyright"/>
       </xsl:if>
     </xsl:attribute>
@@ -43,7 +43,7 @@
   <xsl:apply-templates select="/dbs:slides/dbs:foil|dbs:slides/dbs:foilgroup"/>
 </xsl:template>
 
-<xsl:template match="db:xref">
+<xsl:template match="d:xref">
   <xsl:variable name="target" select="id(./@linkend)"/>
 
   <xsl:choose>
@@ -62,9 +62,9 @@
   </xsl:choose>
 </xsl:template>
 
-<xsl:template match="db:biblioentry" mode="xref-to">
+<xsl:template match="d:biblioentry" mode="xref-to">
   <xsl:variable name="id" select="@xml:id"/>
-  <xsl:variable name="entry" select="//db:bibliography/*[@xml:id=$id][1]"/>
+  <xsl:variable name="entry" select="//d:bibliography/*[@xml:id=$id][1]"/>
 
   <a>
     <xsl:attribute name="href">
@@ -72,7 +72,7 @@
     </xsl:attribute>
     <xsl:choose>
       <xsl:when test="$bibliography.numbered != 0">
-        <xsl:number from="db:bibliography" count="db:biblioentry|db:bibliomixed" level="any" format="1"/>
+        <xsl:number from="d:bibliography" count="d:biblioentry|d:bibliomixed" level="any" format="1"/>
       </xsl:when>
 
       <xsl:otherwise>