Centre images in the Atmel Studio help, apply text formatting styles recursively.
[pub/lufa.git] / LUFA / StudioIntegration / HV1 / lufa_docbook_transform.xslt
index 82ad935..ca08b67 100644 (file)
                                <tbody>
                                        <xsl:for-each select="parameteritem">
                                                <row>
-                                                       <xsl:apply-templates select="."/>
+                                                       <xsl:apply-templates/>
                                                </row>
                                        </xsl:for-each>
                                </tbody>
                                <tbody>
                                        <xsl:for-each select="parameteritem">
                                                <row>
-                                                       <xsl:apply-templates select="."/>
+                                                       <xsl:apply-templates/>
                                                </row>
                                        </xsl:for-each>
                                </tbody>
 
        <xsl:template match="bold">
                <emphasis role="bold">
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </emphasis>
        </xsl:template>
 
        <xsl:template match="emphasis">
                <emphasis role="italic">
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </emphasis>
        </xsl:template>
 
+       <xsl:template match="small">
+               <xsl:apply-templates/>
+       </xsl:template>
+
        <xsl:template match="computeroutput">
                <computeroutput>
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </computeroutput>
        </xsl:template>
 
 
        <xsl:template match="superscript">
                <superscript>
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </superscript>
        </xsl:template>
 
        <xsl:template match="subscript">
                <subscript>
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </subscript>
        </xsl:template>
 
                                        <row>
                                                <xsl:for-each select="entry">
                                                        <entry>
-                                                               <xsl:apply-templates select="."/>
+                                                               <xsl:apply-templates/>
                                                        </entry>
                                                </xsl:for-each>
                                        </row>
                                        <row>
                                                <xsl:for-each select="entry">
                                                        <entry>
-                                                               <xsl:apply-templates select="."/>
+                                                               <xsl:apply-templates/>
                                                        </entry>
                                                </xsl:for-each>
                                        </row>
        <xsl:template match="programlisting">
                <programlisting language="c">
                        <xsl:for-each select="codeline[position() > 1 or highlight]">
-                               <xsl:apply-templates select="."/>
+                               <xsl:apply-templates/>
                                <xsl:text>&#10;</xsl:text>
                        </xsl:for-each>
                </programlisting>
        <xsl:template match="image">
                <mediaobject>
                        <imageobject>
-                               <imagedata>
+                               <imagedata align="center">
                                        <xsl:attribute name="fileref">
                                                <xsl:text>images/</xsl:text>
                                                <xsl:value-of select="@name"/>