Commits

Anonymous committed a0301c6

Converted most of the DocBook 5 tags to the db: namespace.

This is in preparation of preparing a TEI stylesheet.

Comments (0)

Files changed (1)

perl/modules/XML-Grammar-Fiction/extradata/fiction-xml-to-docbook.xslt

             <xsl:value-of select="@xml:lang" />
         </xsl:attribute>
         <xsl:attribute name="version">5.0</xsl:attribute>
-        <info>
-            <title>
+        <db:info>
+            <db:title>
                 <xsl:value-of select="fic:title" />
-            </title>
-        </info>
+            </db:title>
+        </db:info>
         <xsl:apply-templates select="fic:section" />
     </article>
 </xsl:template>
             <xsl:copy-of select="@xml:lang" />
         </xsl:if>
         <!-- Make the title the title attribute or "ID" if does not exist. -->
-        <info>
-        <title>
-            <xsl:choose>
-                <xsl:when test="fic:title">
-                    <xsl:value-of select="fic:title" />
-                </xsl:when>
-                <xsl:otherwise>
-                    <xsl:value-of select="@xml:id" />
-                </xsl:otherwise>
-            </xsl:choose> 
-        </title>
-    </info>
+        <db:info>
+            <db:title>
+                <xsl:choose>
+                    <xsl:when test="fic:title">
+                        <xsl:value-of select="fic:title" />
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="@xml:id" />
+                    </xsl:otherwise>
+                </xsl:choose> 
+            </db:title>
+        </db:info>
         <xsl:apply-templates select="fic:section|fic:blockquote|fic:p|fic:ol|fic:ul|fic:programlisting" />
     </section>
 </xsl:template>
 
 <xsl:template match="fic:p">
-    <para>
+    <db:para>
         <xsl:apply-templates />
-    </para>
+    </db:para>
 </xsl:template>
 
 <xsl:template match="fic:b">
-    <emphasis role="bold">
+    <db:emphasis role="bold">
         <xsl:apply-templates/>
-    </emphasis>
+    </db:emphasis>
 </xsl:template>
 
 <xsl:template name="common_attributes">
 </xsl:template>
 
 <xsl:template match="fic:blockquote">
-    <blockquote>
+    <db:blockquote>
         <xsl:call-template name="common_attributes" />
         <xsl:apply-templates/>
-    </blockquote>
+    </db:blockquote>
 </xsl:template>
 
 <xsl:template match="fic:i">
-    <emphasis>
+    <db:emphasis>
         <xsl:apply-templates/>
-    </emphasis>
+    </db:emphasis>
 </xsl:template>
 
 <xsl:template match="fic:ol">
-    <orderedlist>
+    <db:orderedlist>
         <xsl:apply-templates/>
-    </orderedlist>
+    </db:orderedlist>
 </xsl:template>
 
 <xsl:template match="fic:ul">
-    <itemizedlist>
+    <db:itemizedlist>
         <xsl:apply-templates/>
-    </itemizedlist>
+    </db:itemizedlist>
 </xsl:template>
 
 <xsl:template match="fic:programlisting">
-    <programlisting>
+    <db:programlisting>
         <xsl:apply-templates/>
-    </programlisting>
+    </db:programlisting>
 </xsl:template>
 
 <xsl:template match="fic:li">
-    <listitem>
+    <db:listitem>
         <xsl:apply-templates/>
-    </listitem>
+    </db:listitem>
 </xsl:template>
 
 <xsl:template match="fic:span">
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.