svn commit: r41214 - in projects/xml-tools/share: misc xsl
Gabor Kovesdan
gabor at FreeBSD.org
Thu Mar 14 20:36:45 UTC 2013
Author: gabor
Date: Thu Mar 14 20:36:44 2013
New Revision: 41214
URL: http://svnweb.freebsd.org/changeset/doc/41214
Log:
- Add support for the svnref element
Modified:
projects/xml-tools/share/misc/docbook.css
projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl
Modified: projects/xml-tools/share/misc/docbook.css
==============================================================================
--- projects/xml-tools/share/misc/docbook.css Thu Mar 14 20:36:25 2013 (r41213)
+++ projects/xml-tools/share/misc/docbook.css Thu Mar 14 20:36:44 2013 (r41214)
@@ -134,7 +134,7 @@ html {
color: #007a00;
}
-svnref {
+.svnref {
color: #007a00;
}
Modified: projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl
==============================================================================
--- projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Thu Mar 14 20:36:25 2013 (r41213)
+++ projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Thu Mar 14 20:36:44 2013 (r41214)
@@ -29,8 +29,17 @@
For questions about this documentation, e-mail <<a href="mailto:doc at FreeBSD.org">doc at FreeBSD.org</a>>.</small></p>
</xsl:template>
- <xsl:template match="hostid|username|groupname|devicename|maketarget|makevar">
- <xsl:call-template name="inline.monoseq"/>
+ <xsl:template match="svnref">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:text>http://svnweb.freebsd.org/base?view=revision&revision=</xsl:text>
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+
+ <span class="svnref">
+ <xsl:value-of select="."/>
+ </span>
+ </a>
</xsl:template>
<xsl:template name="generate.citerefentry.link">
More information about the svn-doc-projects
mailing list