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: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="">
                <xsl:with-param name="object" select="$node"/>

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


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

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>
For debugg
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
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.