Centre images in the Atmel Studio help, apply text formatting styles recursively.
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 28 Apr 2013 16:08:33 +0000 (16:08 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 28 Apr 2013 16:08:33 +0000 (16:08 +0000)
LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
LUFA/StudioIntegration/HV1/lufa_studio_help_styling.css

index 82ad935..ca08b67 100644 (file)
                                <tbody>
                                        <xsl:for-each select="parameteritem">
                                                <row>
                                <tbody>
                                        <xsl:for-each select="parameteritem">
                                                <row>
-                                                       <xsl:apply-templates select="."/>
+                                                       <xsl:apply-templates/>
                                                </row>
                                        </xsl:for-each>
                                </tbody>
                                                </row>
                                        </xsl:for-each>
                                </tbody>
                                <tbody>
                                        <xsl:for-each select="parameteritem">
                                                <row>
                                <tbody>
                                        <xsl:for-each select="parameteritem">
                                                <row>
-                                                       <xsl:apply-templates select="."/>
+                                                       <xsl:apply-templates/>
                                                </row>
                                        </xsl:for-each>
                                </tbody>
                                                </row>
                                        </xsl:for-each>
                                </tbody>
 
        <xsl:template match="bold">
                <emphasis role="bold">
 
        <xsl:template match="bold">
                <emphasis role="bold">
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </emphasis>
        </xsl:template>
 
        <xsl:template match="emphasis">
                <emphasis role="italic">
                </emphasis>
        </xsl:template>
 
        <xsl:template match="emphasis">
                <emphasis role="italic">
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </emphasis>
        </xsl:template>
 
                </emphasis>
        </xsl:template>
 
+       <xsl:template match="small">
+               <xsl:apply-templates/>
+       </xsl:template>
+
        <xsl:template match="computeroutput">
                <computeroutput>
        <xsl:template match="computeroutput">
                <computeroutput>
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </computeroutput>
        </xsl:template>
 
                </computeroutput>
        </xsl:template>
 
 
        <xsl:template match="superscript">
                <superscript>
 
        <xsl:template match="superscript">
                <superscript>
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </superscript>
        </xsl:template>
 
        <xsl:template match="subscript">
                <subscript>
                </superscript>
        </xsl:template>
 
        <xsl:template match="subscript">
                <subscript>
-                       <xsl:value-of select="."/>
+                       <xsl:apply-templates/>
                </subscript>
        </xsl:template>
 
                </subscript>
        </xsl:template>
 
                                        <row>
                                                <xsl:for-each select="entry">
                                                        <entry>
                                        <row>
                                                <xsl:for-each select="entry">
                                                        <entry>
-                                                               <xsl:apply-templates select="."/>
+                                                               <xsl:apply-templates/>
                                                        </entry>
                                                </xsl:for-each>
                                        </row>
                                                        </entry>
                                                </xsl:for-each>
                                        </row>
                                        <row>
                                                <xsl:for-each select="entry">
                                                        <entry>
                                        <row>
                                                <xsl:for-each select="entry">
                                                        <entry>
-                                                               <xsl:apply-templates select="."/>
+                                                               <xsl:apply-templates/>
                                                        </entry>
                                                </xsl:for-each>
                                        </row>
                                                        </entry>
                                                </xsl:for-each>
                                        </row>
        <xsl:template match="programlisting">
                <programlisting language="c">
                        <xsl:for-each select="codeline[position() > 1 or highlight]">
        <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:text>&#10;</xsl:text>
                        </xsl:for-each>
                </programlisting>
        <xsl:template match="image">
                <mediaobject>
                        <imageobject>
        <xsl:template match="image">
                <mediaobject>
                        <imageobject>
-                               <imagedata>
+                               <imagedata align="center">
                                        <xsl:attribute name="fileref">
                                                <xsl:text>images/</xsl:text>
                                                <xsl:value-of select="@name"/>
                                        <xsl:attribute name="fileref">
                                                <xsl:text>images/</xsl:text>
                                                <xsl:value-of select="@name"/>
index f38718f..59be60a 100644 (file)
@@ -44,7 +44,7 @@ table thead th {
        padding: 5px;\r
 }\r
 \r
        padding: 5px;\r
 }\r
 \r
-table th, td {\r
+table tbody td {\r
        padding: 5px;\r
 }\r
 \r
        padding: 5px;\r
 }\r
 \r