Source

perl-begin / lib / sgml / shlomif-docbook / xsl-5-stylesheets / shlomif-essays-5-xhtml-common.xsl

Shlomi Fish 44d7c8b 








Shlomi Fish f174ff2 

Shlomi Fish 44d7c8b 
















Shlomi Fish 4f1e013 















Shlomi Fish 44d7c8b 
<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet
    exclude-result-prefixes="d"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:d="http://docbook.org/ns/docbook"
    version='1.0'
    >

    <xsl:import href="docbook.xsl"/>

    <!--
         Commented out because it does not work properly.
    <xsl:template name="anchor">
        <xsl:param name="node" select="."/>
        <xsl:param name="conditional" select="1"/>
        <xsl:variable name="id">
            <xsl:call-template name="object.id">
                <xsl:with-param name="object" select="$node"/>
            </xsl:call-template>
        </xsl:variable>

        <xsl:attribute name="id">
            <xsl:value-of select="$id" />
        </xsl:attribute>

    </xsl:template>
    -->

<!-- Apply the roles into classes -->
<xsl:template match="*[@role]" mode="class.value">
    <xsl:param name="class" select="meaningless"/>
    <xsl:value-of select="@role"/>
</xsl:template>

<!--
For debugging:

<xsl:template match="*" mode="class.value">
    <xsl:param name="class" select="local-name(.)"/>
    <xsl:text>I am now crazy, I just think I ARE</xsl:text>
</xsl:template>
For debugg
-->
</xsl:stylesheet>
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.