|
From: <sv...@va...> - 2005-11-27 18:19:56
|
Author: de Date: 2005-11-27 18:19:40 +0000 (Sun, 27 Nov 2005) New Revision: 5240 Log: mc-tech-docs.xml - removed ref to cachegrind.org vg-html-website.xsl vg-html-chunk.xsl - common stuff stripped out, and placed in vg-html-common.xsl vg-entities.xml - added 2 more website url entities to replace hard-coded urls in FAQ.xml Added: trunk/docs/lib/vg-html-common.xsl Modified: trunk/docs/lib/Makefile.am trunk/docs/lib/line-wrap.xsl trunk/docs/lib/vg-html-chunk.xsl trunk/docs/lib/vg-html-website.xsl trunk/docs/xml/FAQ.xml trunk/docs/xml/vg-entities.xml trunk/memcheck/docs/mc-tech-docs.xml Modified: trunk/docs/lib/Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/lib/Makefile.am 2005-11-27 04:10:00 UTC (rev 5239) +++ trunk/docs/lib/Makefile.am 2005-11-27 18:19:40 UTC (rev 5240) @@ -1,7 +1,8 @@ EXTRA_DIST =3D \ + vg_basic.css \ vg-fo.xsl \ - vg-html-chunk.xsl \ vg-faq2txt.xsl \ line-wrap.xsl \ - vg_basic.css \ - vg-html-website.xsl + vg-html-chunk.xsl \ + vg-html-website.xsl \ + vg-html-common.xsl Modified: trunk/docs/lib/line-wrap.xsl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/lib/line-wrap.xsl 2005-11-27 04:10:00 UTC (rev 5239) +++ trunk/docs/lib/line-wrap.xsl 2005-11-27 18:19:40 UTC (rev 5240) @@ -97,7 +97,7 @@ <!-- which is a list of 'line' elements, each having a list of 'word' = --> <!-- children. After the last 'line' element there's a single 'word', in= --> <!-- which the 'current word; is being accumulated. Whenever the curren= t --> -<!--- character is one of the specified delimiters, this signals the = --> +<!-- character is one of the specified delimiters, this signals the = --> <!-- formation of a new word. This word is either added to the last line= --> <!-- (if the total line length will not exceed the specified line-length= ), --> <!-- or a new line is started and this word becomes the 1st in the new l= ine --> @@ -105,7 +105,7 @@ <xsl:param name=3D"pLine" select=3D"/.."/> <xsl:param name=3D"pWord" select=3D"/.."/> <xsl:param name=3D"pLineLength" /> - =20 + <xsl:variable name=3D"vnWordsInLine" select=3D"count($pLine/word)"/> <xsl:variable name=3D"vLineLength"=20 select=3D"string-length($pLine) + $vnWordsInLine"/> Modified: trunk/docs/lib/vg-html-chunk.xsl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/lib/vg-html-chunk.xsl 2005-11-27 04:10:00 UTC (rev 5239) +++ trunk/docs/lib/vg-html-chunk.xsl 2005-11-27 18:19:40 UTC (rev 5240) @@ -1,101 +1,15 @@ <?xml version=3D"1.0"?> <!-- -*- sgml -*- --> <xsl:stylesheet xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" versi= on=3D"1.0"> =20 -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/docbook.xsl"/> -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/chunk-common.xsl"/> -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/manifest.xsl"/> -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/chunk-code.xsl"/> +<!-- import the common styles --> +<xsl:import href=3D"vg-html-common.xsl"/> =20 =20 -<!-- use 8859-1 encoding --> -<xsl:output method=3D"html" encoding=3D"ISO-8859-1" indent=3D"yes"/> - -<!-- set various parameters --> -<xsl:param name=3D"use.id.as.filename" select=3D"'1'"/>=20 -<xsl:param name=3D"chunker.output.indent" select=3D"'yes'"/> <!-- use our custom html stylesheet --> <xsl:param name=3D"html.stylesheet" select=3D"'vg_basic.css'"/> -<!-- set chunking at the chapter level only --> -<xsl:param name=3D"chunk.section.depth" select=3D"'0'"/>=20 -<!-- do not generate sub-tocs for qanda sets --> -<xsl:param name=3D"generate.toc"> -set toc,title -book toc,title,figure,table,example,equation -chapter toc,title -section toc -sect1 toc -sect2 toc -sect3 toc -sect4 nop -sect5 nop -qandaset toc -qandadiv toc -appendix toc,title -article/appendix nop -article nop -preface toc,title -reference toc,title -</xsl:param> =20 =20 -<!-- properties common to html + fo ................................... = --> - -<!-- we like '1.2 Title' --> -<xsl:param name=3D"section.autolabel" select=3D"'1'"/>=20 -<xsl:param name=3D"section.label.includes.component.label" select=3D"'1'= "/> - -<!-- Do not put 'Chapter' at the start of eg 'Chapter 1. Doing This' --> -<xsl:param name=3D"local.l10n.xml" select=3D"document('')"/>=20 -<l:i18n xmlns:l=3D"http://docbook.sourceforge.net/xmlns/l10n/1.0">=20 - <l:l10n language=3D"en">=20 - <l:context name=3D"title-numbered"> - <l:template name=3D"chapter" text=3D"%n. %t"/> - </l:context>=20 - </l:l10n> -</l:i18n> - -<!-- per Bob Stayton: turn off xml:base processing pro tem --> -<!-- should hopefully be fixed in next docbook stylesheets release (1.70= ) --> -<xsl:template match=3D"@fileref"> - <xsl:value-of select=3D"."/> -</xsl:template> - -<!-- end properties common to html + fo ............................... = --> - - -<!-- center everything at the top of a titlepage --> -<xsl:attribute-set name=3D"set.titlepage.recto.style"> - <xsl:attribute name=3D"align">center</xsl:attribute> -</xsl:attribute-set> - - -<!-- don`t put an expanded set-level TOC, only book titles --> -<xsl:template match=3D"book" mode=3D"toc"> - <xsl:param name=3D"toc-context" select=3D"."/> - <xsl:choose> - <xsl:when test=3D"local-name($toc-context) =3D 'set'"> - <xsl:call-template name=3D"subtoc"> - <xsl:with-param name=3D"toc-context" select=3D"$toc-context"/> - <xsl:with-param name=3D"nodes" select=3D"foo"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name=3D"subtoc"> - <xsl:with-param name=3D"toc-context" select=3D"$toc-context"/> - <xsl:with-param name=3D"nodes" select=3D"part|reference - |preface|chapter|appendix - |article - |bibliography|glossary|index - |refentry - |bridgehead[$bridgehead.in.toc = !=3D -0]"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - -<!-- custom header for html docs --> +<!-- custom header for html documentation --> <xsl:template name=3D"header.navigation"> <xsl:param name=3D"prev" select=3D"/foo"/> <xsl:param name=3D"next" select=3D"/foo"/> @@ -206,139 +120,4 @@ </xsl:template> =20 =20 -<!-- custom footer --> -<xsl:template name=3D"footer.navigation"> - <xsl:param name=3D"prev" select=3D"/foo"/> - <xsl:param name=3D"next" select=3D"/foo"/> - <xsl:param name=3D"nav.context"/> - - <xsl:variable name=3D"home" select=3D"/*[1]"/> - <xsl:variable name=3D"up" select=3D"parent::*"/> - - <xsl:variable name=3D"row1" select=3D"count($prev) > 0 - or count($up) > 0 - or count($next) > 0"/> - - <xsl:variable name=3D"row2" select=3D"($prev !=3D 0) - or (generate-id($home) !=3D generate-id(.) or $nav.context = =3D 'toc') - or ($chunk.tocs.and.lots !=3D 0 and $nav.context !=3D 'toc'= ) - or ($next !=3D 0)"/> - <div> - <xsl:if test=3D"$row1 or $row2"> - <br /> - <table class=3D"nav" width=3D"100%" cellspacing=3D"3" cellpadding=3D"= 2" border=3D"0" summary=3D"Navigation footer"> - <xsl:if test=3D"$row1"> - <tr> - <td rowspan=3D"2" width=3D"40%" align=3D"left"> - <xsl:if test=3D"count($prev)>0"> - <a accesskey=3D"p"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$prev"/> - </xsl:call-template> - </xsl:attribute> - <xsl:text><< </xsl:text> - <xsl:apply-templates select=3D"$prev" mode=3D"object.title.mark= up"/> - </a> - </xsl:if> - <xsl:text> </xsl:text> - </td> - <td width=3D"20%" align=3D"center"> - <xsl:choose> - <xsl:when test=3D"count($up)>0"> - <a accesskey=3D"u"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$up"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name=3D"navig.content"> - <xsl:with-param name=3D"direction" select=3D"'up'"/> - </xsl:call-template> - </a> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - </td> - <td rowspan=3D"2" width=3D"40%" align=3D"right"> - <xsl:text> </xsl:text> - <xsl:if test=3D"count($next)>0"> - <a accesskey=3D"n"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$next"/> - </xsl:call-template> - </xsl:attribute> - <xsl:apply-templates select=3D"$next" mode=3D"object.title.mark= up"/> - <xsl:text> >></xsl:text> - </a> - </xsl:if> - </td> - </tr> - </xsl:if> - - <xsl:if test=3D"$row2"> - <tr> - <td width=3D"20%" align=3D"center"> - <xsl:choose> - <xsl:when test=3D"$home !=3D . or $nav.context =3D 'toc'"> - <a accesskey=3D"h"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$home"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name=3D"navig.content"> - <xsl:with-param name=3D"direction" select=3D"'home'"/> - </xsl:call-template> - </a> - <xsl:if test=3D"$chunk.tocs.and.lots !=3D 0 and $nav.context !=3D= 'toc'"> - <xsl:text> | </xsl:text> - </xsl:if> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - <xsl:if test=3D"$chunk.tocs.and.lots !=3D 0 and $nav.context !=3D= 'toc'"> - <a accesskey=3D"t"> - <xsl:attribute name=3D"href"> - <xsl:apply-templates select=3D"/*[1]" mode=3D"recursive-chunk-= filename"/> - <xsl:text>-toc</xsl:text> - <xsl:value-of select=3D"$html.ext"/> - </xsl:attribute> - <xsl:call-template name=3D"gentext"> - <xsl:with-param name=3D"key" select=3D"'nav-toc'"/> - </xsl:call-template> - </a> - </xsl:if> - </td> - </tr> - </xsl:if> - </table> - </xsl:if> - </div> -</xsl:template> - - -<!-- faq styles --> -<xsl:template match=3D"answer"> - <xsl:variable name=3D"deflabel"> - <xsl:choose> - <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> - <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] - /@defaultlabel"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select=3D"$qanda.defaultlabel"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <tr class=3D"{name(.)}"> - <td><xsl:text> </xsl:text></td> - <td align=3D"left" valign=3D"top"> - <xsl:apply-templates select=3D"*[name(.) !=3D 'label']"/> - </td> - </tr> - <tr><td colspan=3D"2"><xsl:text> </xsl:text></td></tr> -</xsl:template> - </xsl:stylesheet> Added: trunk/docs/lib/vg-html-common.xsl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/lib/vg-html-common.xsl (rev 0) +++ trunk/docs/lib/vg-html-common.xsl 2005-11-27 18:19:40 UTC (rev 5240) @@ -0,0 +1,411 @@ +<?xml version=3D"1.0"?> <!-- -*- sgml -*- --> +<xsl:stylesheet xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" versi= on=3D"1.0"> + +<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/docbook.xsl"/> +<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/chunk-common.xsl"/> +<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/manifest.xsl"/> +<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/chunk-code.xsl"/> + + +<!-- use 8859-1 encoding --> +<xsl:output method=3D"html" encoding=3D"ISO-8859-1" indent=3D"yes"/> + +<!-- set various parameters --> +<xsl:param name=3D"use.id.as.filename" select=3D"'1'"/>=20 +<xsl:param name=3D"chunker.output.indent" select=3D"'yes'"/> +<!-- set chunking at the chapter level only --> +<xsl:param name=3D"chunk.section.depth" select=3D"'0'"/>=20 +<!-- set toc-levels --> +<xsl:param name=3D"generate.toc"> +set toc,title +book toc,title,figure,table,example,equation +chapter toc,title +section toc +sect1 toc +sect2 toc +sect3 toc +sect4 nop +sect5 nop +qandaset toc +qandadiv toc +appendix toc,title +article/appendix nop +article nop +preface toc,title +reference toc,title +</xsl:param> + + +<!-- properties common to html + fo ................................... = --> + +<!-- we like '1.2 Title' --> +<xsl:param name=3D"section.autolabel" select=3D"'1'"/>=20 +<xsl:param name=3D"section.label.includes.component.label" select=3D"'1'= "/> + +<!-- Do not put 'Chapter' at the start of eg 'Chapter 1. Doing This' --> +<xsl:param name=3D"local.l10n.xml" select=3D"document('')"/>=20 +<l:i18n xmlns:l=3D"http://docbook.sourceforge.net/xmlns/l10n/1.0">=20 + <l:l10n language=3D"en">=20 + <l:context name=3D"title-numbered"> + <l:template name=3D"chapter" text=3D"%n. %t"/> + </l:context>=20 + </l:l10n> +</l:i18n> + +<!-- per Bob Stayton: turn off xml:base processing pro tem --> +<!-- should hopefully be fixed in next docbook stylesheets release (1.70= ) --> +<xsl:template match=3D"@fileref"> + <xsl:value-of select=3D"."/> +</xsl:template> + +<!-- end properties common to html + fo ............................... = --> + + +<!-- center everything at the top of a titlepage --> +<xsl:attribute-set name=3D"set.titlepage.recto.style"> + <xsl:attribute name=3D"align">center</xsl:attribute> +</xsl:attribute-set> + + +<!-- don`t put an expanded set-level TOC, only book titles --> +<xsl:template match=3D"book" mode=3D"toc"> + <xsl:param name=3D"toc-context" select=3D"."/> + <xsl:choose> + <xsl:when test=3D"local-name($toc-context) =3D 'set'"> + <xsl:call-template name=3D"subtoc"> + <xsl:with-param name=3D"toc-context" select=3D"$toc-context"/> + <xsl:with-param name=3D"nodes" select=3D"foo"/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name=3D"subtoc"> + <xsl:with-param name=3D"toc-context" select=3D"$toc-context"/> + <xsl:with-param name=3D"nodes" select=3D"part|reference + |preface|chapter|appendix + |article + |bibliography|glossary|index + |refentry + |bridgehead[$bridgehead.in.toc = !=3D +0]"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + + +<!-- custom footer --> +<xsl:template name=3D"footer.navigation"> + <xsl:param name=3D"prev" select=3D"/foo"/> + <xsl:param name=3D"next" select=3D"/foo"/> + <xsl:param name=3D"nav.context"/> + + <xsl:variable name=3D"home" select=3D"/*[1]"/> + <xsl:variable name=3D"up" select=3D"parent::*"/> + + <xsl:variable name=3D"row1" select=3D"count($prev) > 0 + or count($up) > 0 + or count($next) > 0"/> + + <xsl:variable name=3D"row2" select=3D"($prev !=3D 0) + or (generate-id($home) !=3D generate-id(.) or $nav.context = =3D 'toc') + or ($chunk.tocs.and.lots !=3D 0 and $nav.context !=3D 'toc'= ) + or ($next !=3D 0)"/> + <div> + <xsl:if test=3D"$row1 or $row2"> + <br /> + <table class=3D"nav" width=3D"100%" cellspacing=3D"3" cellpadding=3D"= 2" border=3D"0" summary=3D"Navigation footer"> + <xsl:if test=3D"$row1"> + <tr> + <td rowspan=3D"2" width=3D"40%" align=3D"left"> + <xsl:if test=3D"count($prev)>0"> + <a accesskey=3D"p"> + <xsl:attribute name=3D"href"> + <xsl:call-template name=3D"href.target"> + <xsl:with-param name=3D"object" select=3D"$prev"/> + </xsl:call-template> + </xsl:attribute> + <xsl:text><< </xsl:text> + <xsl:apply-templates select=3D"$prev" mode=3D"object.title.mark= up"/> + </a> + </xsl:if> + <xsl:text> </xsl:text> + </td> + <td width=3D"20%" align=3D"center"> + <xsl:choose> + <xsl:when test=3D"count($up)>0"> + <a accesskey=3D"u"> + <xsl:attribute name=3D"href"> + <xsl:call-template name=3D"href.target"> + <xsl:with-param name=3D"object" select=3D"$up"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name=3D"navig.content"> + <xsl:with-param name=3D"direction" select=3D"'up'"/> + </xsl:call-template> + </a> + </xsl:when> + <xsl:otherwise> </xsl:otherwise> + </xsl:choose> + </td> + <td rowspan=3D"2" width=3D"40%" align=3D"right"> + <xsl:text> </xsl:text> + <xsl:if test=3D"count($next)>0"> + <a accesskey=3D"n"> + <xsl:attribute name=3D"href"> + <xsl:call-template name=3D"href.target"> + <xsl:with-param name=3D"object" select=3D"$next"/> + </xsl:call-template> + </xsl:attribute> + <xsl:apply-templates select=3D"$next" mode=3D"object.title.mark= up"/> + <xsl:text> >></xsl:text> + </a> + </xsl:if> + </td> + </tr> + </xsl:if> + <xsl:if test=3D"$row2"> + <tr> + <td width=3D"20%" align=3D"center"> + <xsl:choose> + <xsl:when test=3D"$home !=3D . or $nav.context =3D 'toc'"> + <a accesskey=3D"h"> + <xsl:attribute name=3D"href"> + <xsl:call-template name=3D"href.target"> + <xsl:with-param name=3D"object" select=3D"$home"/> + </xsl:call-template> + </xsl:attribute> + <xsl:call-template name=3D"navig.content"> + <xsl:with-param name=3D"direction" select=3D"'home'"/> + </xsl:call-template> + </a> + <xsl:if test=3D"$chunk.tocs.and.lots !=3D 0 and $nav.context !=3D= 'toc'"> + <xsl:text> | </xsl:text> + </xsl:if> + </xsl:when> + <xsl:otherwise> </xsl:otherwise> + </xsl:choose> + <xsl:if test=3D"$chunk.tocs.and.lots !=3D 0 and $nav.context !=3D= 'toc'"> + <a accesskey=3D"t"> + <xsl:attribute name=3D"href"> + <xsl:apply-templates select=3D"/*[1]" mode=3D"recursive-chunk-= filename"/> + <xsl:text>-toc</xsl:text> + <xsl:value-of select=3D"$html.ext"/> + </xsl:attribute> + <xsl:call-template name=3D"gentext"> + <xsl:with-param name=3D"key" select=3D"'nav-toc'"/> + </xsl:call-template> + </a> + </xsl:if> + </td> + </tr> + </xsl:if> + </table> + </xsl:if> + </div> +</xsl:template> + + +<!-- qandaset styles --> +<!-- these templates have been carefully tweaked to correct the -= -> +<!-- horrible mess that docbook makes of dl/dt/dd tags. Edit with care -= -> +<xsl:template match=3D"qandaset"> + <xsl:variable name=3D"title" select=3D"(blockinfo/title|title)[1]"/> + <xsl:variable name=3D"toc"> + <xsl:call-template name=3D"dbhtml-attribute"> + <xsl:with-param name=3D"pis" select=3D"processing-instruction('dbh= tml')"/> + <xsl:with-param name=3D"attribute" select=3D"'toc'"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name=3D"toc.params"> + <xsl:call-template name=3D"find.path.params"> + <xsl:with-param name=3D"table" select=3D"normalize-space($generate= .toc)"/> + </xsl:call-template> + </xsl:variable> + + <div class=3D"{name(.)}"> + <xsl:apply-templates select=3D"$title"/> + <xsl:if test=3D"(contains($toc.params, 'toc') and $toc !=3D '0') or = $toc =3D '1'"> + <xsl:call-template name=3D"process.qanda.toc"/> + </xsl:if> + <xsl:apply-templates select=3D"qandaentry|qandadiv"/> + </div> +</xsl:template> + + +<xsl:template match=3D"qandadiv"> + <br/> + <table width=3D"100%" summary=3D"Q and A Div" cellpadding=3D"2" cellsp= acing=3D"2" border=3D"0"> + <xsl:if test=3D"blockinfo/title|title"> + <tr class=3D"qandadiv"> + <td align=3D"left" valign=3D"top" colspan=3D"2"> + <xsl:call-template name=3D"anchor"> + <xsl:with-param name=3D"conditional" select=3D"0"/> + </xsl:call-template> + <xsl:apply-templates select=3D"(blockinfo/title|title)[1]"/> + </td> + </tr> + </xsl:if> + + <xsl:variable name=3D"toc"> + <xsl:call-template name=3D"dbhtml-attribute"> + <xsl:with-param name=3D"pis" + select=3D"processing-instruction('dbhtml')"/> + <xsl:with-param name=3D"attribute" select=3D"'toc'"/> + </xsl:call-template> + </xsl:variable> + + <xsl:variable name=3D"toc.params"> + <xsl:call-template name=3D"find.path.params"> + <xsl:with-param name=3D"table" select=3D"normalize-space($generate= .toc)"/> + </xsl:call-template> + </xsl:variable> + + <xsl:if test=3D"(contains($toc.params, 'toc') and $toc !=3D '0') or $t= oc =3D '1'"> + <tr class=3D"toc" colspan=3D"2"> + <td align=3D"left" valign=3D"top" colspan=3D"2"> + <xsl:call-template name=3D"process.myqanda.toc"/> + </td> + </tr> + </xsl:if> + <xsl:apply-templates select=3D"qandadiv|qandaentry"/> + </table> +</xsl:template> + + +<!-- put questions in bold --> +<xsl:template match=3D"question/para"> + <b><xsl:apply-templates/></b> +</xsl:template> + +<xsl:template match=3D"question"> + <xsl:variable name=3D"deflabel"> + <xsl:choose> + <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> + <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] + /@defaultlabel"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select=3D"$qanda.defaultlabel"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <tr><td colspan=3D"2"><xsl:text> </xsl:text></td></tr> + <tr class=3D"{name(.)}"> + <td align=3D"left" valign=3D"top"> + <xsl:call-template name=3D"anchor"> + <xsl:with-param name=3D"node" select=3D".."/> + <xsl:with-param name=3D"conditional" select=3D"0"/> + </xsl:call-template> + <xsl:call-template name=3D"anchor"> + <xsl:with-param name=3D"conditional" select=3D"0"/> + </xsl:call-template> + <b> + <xsl:apply-templates select=3D"." mode=3D"label.markup"/> + <xsl:if test=3D"$deflabel =3D 'number' and not(label)"> + <xsl:apply-templates select=3D"." mode=3D"intralabel.punctuati= on"/> + </xsl:if> + </b> + </td> + <td align=3D"left" valign=3D"top"> + <xsl:choose> + <xsl:when test=3D"$deflabel =3D 'none' and not(label)"> + <b><xsl:apply-templates select=3D"*[name(.) !=3D 'label']"/></= b> + </xsl:when> + <xsl:otherwise> + <xsl:apply-templates select=3D"*[name(.) !=3D 'label']"/> + </xsl:otherwise> + </xsl:choose> + </td> + </tr> +</xsl:template> + + +<xsl:template name=3D"process.myqanda.toc"> + <xsl:apply-templates select=3D"qandadiv" mode=3D"qandatoc.mode"/> + <xsl:apply-templates select=3D"qandaentry" mode=3D"myqandatoc.mode"/> +</xsl:template> + + +<xsl:template name=3D"process.qanda.toc"> + <xsl:apply-templates select=3D"qandadiv" mode=3D"qandatoc.mode"/> + <xsl:apply-templates select=3D"qandaentry" mode=3D"qandatoc.mode"/> +</xsl:template> + + +<xsl:template match=3D"qandadiv" mode=3D"qandatoc.mode"> +<dl> + <dt><xsl:apply-templates select=3D"title" mode=3D"qandatoc.mode"/></dt= > + <xsl:call-template name=3D"process.qanda.toc"/> +</dl> +</xsl:template> + + +<!-- this one is used at the top of the page --> +<xsl:template match=3D"question" mode=3D"qandatoc.mode"> + <xsl:variable name=3D"firstch" select=3D"(*[name(.)!=3D'label'])[1]"/> + <xsl:variable name=3D"deflabel"> + <xsl:choose> + <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> + <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] + /@defaultlabel"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select=3D"$qanda.defaultlabel"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <dd> + <xsl:apply-templates select=3D"." mode=3D"label.markup"/> + <xsl:if test=3D"$deflabel =3D 'number' and not(label)"> + <xsl:apply-templates select=3D"." mode=3D"intralabel.punctuation"/= > + </xsl:if> + <xsl:text> </xsl:text> + <a> + <xsl:attribute name=3D"href"> + <xsl:call-template name=3D"href.target"> + <xsl:with-param name=3D"object" select=3D".."/> + </xsl:call-template> + </xsl:attribute> + <xsl:value-of select=3D"$firstch"/> + </a> + </dd> +</xsl:template> + + +<!-- this one is used within table cells --> +<xsl:template match=3D"qandaentry" mode=3D"myqandatoc.mode"> + <xsl:apply-templates select=3D"question" mode=3D"myqandatoc.mode"/> +</xsl:template> + +<xsl:template match=3D"question" mode=3D"myqandatoc.mode"> + <xsl:variable name=3D"firstch" select=3D"(*[name(.)!=3D'label'])[1]"/> + <xsl:variable name=3D"deflabel"> + <xsl:choose> + <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> + <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] + /@defaultlabel"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select=3D"$qanda.defaultlabel"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:apply-templates select=3D"." mode=3D"label.markup"/> + <xsl:if test=3D"$deflabel =3D 'number' and not(label)"> + <xsl:apply-templates select=3D"." mode=3D"intralabel.punctuation"/= > + </xsl:if> + <xsl:text> </xsl:text> + <a> + <xsl:attribute name=3D"href"> + <xsl:call-template name=3D"href.target"> + <xsl:with-param name=3D"object" select=3D".."/> + </xsl:call-template> + </xsl:attribute> + <xsl:value-of select=3D"$firstch"/> + </a> + <br /> +</xsl:template> + + +</xsl:stylesheet> Modified: trunk/docs/lib/vg-html-website.xsl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/lib/vg-html-website.xsl 2005-11-27 04:10:00 UTC (rev 5239) +++ trunk/docs/lib/vg-html-website.xsl 2005-11-27 18:19:40 UTC (rev 5240) @@ -1,101 +1,20 @@ <?xml version=3D"1.0"?> <!-- -*- sgml -*- --> <xsl:stylesheet xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transform" versi= on=3D"1.0"> =20 -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/docbook.xsl"/> -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/chunk-common.xsl"/> -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/manifest.xsl"/> -<xsl:import href=3D"http://docbook.sourceforge.net/release/xsl/current/h= tml/chunk-code.xsl"/> - -<!-- special stylesheet to generate the docs to fit into the website = --> -<!-- the only differences between this and vg-html-chunk.xsl should be: = --> +<!-- special stylesheet to generate the docs to fit into the website --> +<!-- the only differences between this and vg-html-chunk.xsl are: --> <!-- (a) no css stylesheet is used; --> <!-- (b) no navigation header is used; --> <!-- (c) no html start/end tags are output --> =20 =20 -<!-- use 8859-1 encoding --> -<xsl:output method=3D"html" encoding=3D"ISO-8859-1" indent=3D"yes"/> +<!-- import the common styles --> +<xsl:import href=3D"vg-html-common.xsl"/> =20 -<!-- set various parameters --> -<xsl:param name=3D"use.id.as.filename" select=3D"'1'"/>=20 -<xsl:param name=3D"chunker.output.indent" select=3D"'yes'"/> -<!-- set chunking at the chapter level only --> -<xsl:param name=3D"chunk.section.depth" select=3D"'0'"/>=20 -<!-- do not generate sub-tocs for qanda sets --> -<xsl:param name=3D"generate.toc"> -set toc,title -book toc,title,figure,table,example,equation -chapter toc,title -section toc -sect1 toc -sect2 toc -sect3 toc -sect4 nop -sect5 nop -qandaset toc -qandadiv toc -appendix toc,title -article/appendix nop -article nop -preface toc,title -reference toc,title -</xsl:param> =20 -<!-- properties common to html + fo ................................... = --> - -<!-- we like '1.2 Title' --> -<xsl:param name=3D"section.autolabel" select=3D"'1'"/>=20 -<xsl:param name=3D"section.label.includes.component.label" select=3D"'1'= "/> - -<!-- Do not put 'Chapter' at the start of eg 'Chapter 1. Doing This' --> -<xsl:param name=3D"local.l10n.xml" select=3D"document('')"/>=20 -<l:i18n xmlns:l=3D"http://docbook.sourceforge.net/xmlns/l10n/1.0">=20 - <l:l10n language=3D"en">=20 - <l:context name=3D"title-numbered"> - <l:template name=3D"chapter" text=3D"%n. %t"/> - </l:context>=20 - </l:l10n> -</l:i18n> - -<!-- per Bob Stayton: turn off xml:base processing pro tem --> -<!-- should hopefully be fixed in next docbook stylesheets release (1.70= ) --> -<xsl:template match=3D"@fileref"> - <xsl:value-of select=3D"."/> -</xsl:template> - -<!-- end properties common to html + fo ............................... = --> - - -<!-- center everything at the top of a titlepage --> -<xsl:attribute-set name=3D"set.titlepage.recto.style"> - <xsl:attribute name=3D"align">center</xsl:attribute> -</xsl:attribute-set> - - -<!-- don`t put an expanded set-level TOC, only book titles --> -<xsl:template match=3D"book" mode=3D"toc"> - <xsl:param name=3D"toc-context" select=3D"."/> - <xsl:choose> - <xsl:when test=3D"local-name($toc-context) =3D 'set'"> - <xsl:call-template name=3D"subtoc"> - <xsl:with-param name=3D"toc-context" select=3D"$toc-context"/> - <xsl:with-param name=3D"nodes" select=3D"foo"/> - </xsl:call-template> - </xsl:when> - <xsl:otherwise> - <xsl:call-template name=3D"subtoc"> - <xsl:with-param name=3D"toc-context" select=3D"$toc-context"/> - <xsl:with-param name=3D"nodes"=20 - select=3D"part|reference|preface|chapter|appendi= x - |article|bibliography|glossary|index - |refentry|bridgehead[$bridgehead.in.toc = !=3D 0]"/> - </xsl:call-template> - </xsl:otherwise> - </xsl:choose> -</xsl:template> - - -<!-- custom header for website: no 'html' / 'body' etc. tags --> +<!-- custom header for website documentation --> +<!-- the original template inserts html+title+body tags --> +<!-- see http://docbook.sourceforge.net/release/xsl/current/html/chunk-c= ommon.xsl --> <xsl:template name=3D"chunk-element-content"> <xsl:param name=3D"prev"/> <xsl:param name=3D"next"/> @@ -112,322 +31,4 @@ </xsl:template> =20 =20 -<!-- custom footer --> -<xsl:template name=3D"footer.navigation"> - <xsl:param name=3D"prev" select=3D"/foo"/> - <xsl:param name=3D"next" select=3D"/foo"/> - <xsl:param name=3D"nav.context"/> - - <xsl:variable name=3D"home" select=3D"/*[1]"/> - <xsl:variable name=3D"up" select=3D"parent::*"/> - - <xsl:variable name=3D"row1" select=3D"count($prev) > 0 - or count($up) > 0 - or count($next) > 0"/> - - <xsl:variable name=3D"row2" select=3D"($prev !=3D 0) - or (generate-id($home) !=3D generate-id(.) or $nav.context = =3D 'toc') - or ($chunk.tocs.and.lots !=3D 0 and $nav.context !=3D 'toc'= ) - or ($next !=3D 0)"/> - <div> - <xsl:if test=3D"$row1 or $row2"> - <br /> - <table class=3D"nav" width=3D"100%" cellspacing=3D"3" cellpadding=3D"= 2" border=3D"0" summary=3D"Navigation footer"> - <xsl:if test=3D"$row1"> - <tr> - <td rowspan=3D"2" width=3D"40%" align=3D"left"> - <xsl:if test=3D"count($prev)>0"> - <a accesskey=3D"p"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$prev"/> - </xsl:call-template> - </xsl:attribute> - <xsl:text><< </xsl:text> - <xsl:apply-templates select=3D"$prev" mode=3D"object.title.mark= up"/> - </a> - </xsl:if> - <xsl:text> </xsl:text> - </td> - <td width=3D"20%" align=3D"center"> - <xsl:choose> - <xsl:when test=3D"count($up)>0"> - <a accesskey=3D"u"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$up"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name=3D"navig.content"> - <xsl:with-param name=3D"direction" select=3D"'up'"/> - </xsl:call-template> - </a> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - </td> - <td rowspan=3D"2" width=3D"40%" align=3D"right"> - <xsl:text> </xsl:text> - <xsl:if test=3D"count($next)>0"> - <a accesskey=3D"n"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$next"/> - </xsl:call-template> - </xsl:attribute> - <xsl:apply-templates select=3D"$next" mode=3D"object.title.mark= up"/> - <xsl:text> >></xsl:text> - </a> - </xsl:if> - </td> - </tr> - </xsl:if> - <xsl:if test=3D"$row2"> - <tr> - <td width=3D"20%" align=3D"center"> - <xsl:choose> - <xsl:when test=3D"$home !=3D . or $nav.context =3D 'toc'"> - <a accesskey=3D"h"> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D"$home"/> - </xsl:call-template> - </xsl:attribute> - <xsl:call-template name=3D"navig.content"> - <xsl:with-param name=3D"direction" select=3D"'home'"/> - </xsl:call-template> - </a> - <xsl:if test=3D"$chunk.tocs.and.lots !=3D 0 and $nav.context !=3D= 'toc'"> - <xsl:text> | </xsl:text> - </xsl:if> - </xsl:when> - <xsl:otherwise> </xsl:otherwise> - </xsl:choose> - <xsl:if test=3D"$chunk.tocs.and.lots !=3D 0 and $nav.context !=3D= 'toc'"> - <a accesskey=3D"t"> - <xsl:attribute name=3D"href"> - <xsl:apply-templates select=3D"/*[1]" mode=3D"recursive-chunk-= filename"/> - <xsl:text>-toc</xsl:text> - <xsl:value-of select=3D"$html.ext"/> - </xsl:attribute> - <xsl:call-template name=3D"gentext"> - <xsl:with-param name=3D"key" select=3D"'nav-toc'"/> - </xsl:call-template> - </a> - </xsl:if> - </td> - </tr> - </xsl:if> - </table> - </xsl:if> - </div> -</xsl:template> - - -<!-- qandaset styles --> -<!-- these templates have been carefully tweaked to correct the horrible= --> -<!-- mess that docbook makes of dl/dt/dd tags. Edit with care. = --> -<xsl:template match=3D"qandaset"> - <xsl:variable name=3D"title" select=3D"(blockinfo/title|title)[1]"/> - <xsl:variable name=3D"toc"> - <xsl:call-template name=3D"dbhtml-attribute"> - <xsl:with-param name=3D"pis" select=3D"processing-instruction('dbh= tml')"/> - <xsl:with-param name=3D"attribute" select=3D"'toc'"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name=3D"toc.params"> - <xsl:call-template name=3D"find.path.params"> - <xsl:with-param name=3D"table" select=3D"normalize-space($generate= .toc)"/> - </xsl:call-template> - </xsl:variable> - - <div class=3D"{name(.)}"> - <xsl:apply-templates select=3D"$title"/> - <xsl:if test=3D"(contains($toc.params, 'toc') and $toc !=3D '0') or = $toc =3D '1'"> - <xsl:call-template name=3D"process.qanda.toc"/> - </xsl:if> - <xsl:apply-templates select=3D"qandaentry|qandadiv"/> - </div> -</xsl:template> - - -<xsl:template match=3D"qandadiv"> -<!-- - <hr/> ---> - <br/> - <table width=3D"100%" summary=3D"Q and A Div" cellpadding=3D"2" cellsp= acing=3D"2" border=3D"0"> - <xsl:if test=3D"blockinfo/title|title"> - <tr class=3D"qandadiv"> - <td align=3D"left" valign=3D"top" colspan=3D"2"> - <xsl:call-template name=3D"anchor"> - <xsl:with-param name=3D"conditional" select=3D"0"/> - </xsl:call-template> - <xsl:apply-templates select=3D"(blockinfo/title|title)[1]"/> - </td> - </tr> - </xsl:if> - - <xsl:variable name=3D"toc"> - <xsl:call-template name=3D"dbhtml-attribute"> - <xsl:with-param name=3D"pis" - select=3D"processing-instruction('dbhtml')"/> - <xsl:with-param name=3D"attribute" select=3D"'toc'"/> - </xsl:call-template> - </xsl:variable> - - <xsl:variable name=3D"toc.params"> - <xsl:call-template name=3D"find.path.params"> - <xsl:with-param name=3D"table" select=3D"normalize-space($generate= .toc)"/> - </xsl:call-template> - </xsl:variable> - - <xsl:if test=3D"(contains($toc.params, 'toc') and $toc !=3D '0') or $t= oc =3D '1'"> - <tr class=3D"toc" colspan=3D"2"> - <td align=3D"left" valign=3D"top" colspan=3D"2"> - <xsl:call-template name=3D"process.myqanda.toc"/> - </td> - </tr> - </xsl:if> - <xsl:apply-templates select=3D"qandadiv|qandaentry"/> - </table> -</xsl:template> - - -<!-- put questions in bold --> -<xsl:template match=3D"question/para"> - <b><xsl:apply-templates/></b> -</xsl:template> - -<xsl:template match=3D"question"> - <xsl:variable name=3D"deflabel"> - <xsl:choose> - <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> - <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] - /@defaultlabel"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select=3D"$qanda.defaultlabel"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <tr><td colspan=3D"2"><xsl:text> </xsl:text></td></tr> - <tr class=3D"{name(.)}"> - <td align=3D"left" valign=3D"top"> - <xsl:call-template name=3D"anchor"> - <xsl:with-param name=3D"node" select=3D".."/> - <xsl:with-param name=3D"conditional" select=3D"0"/> - </xsl:call-template> - <xsl:call-template name=3D"anchor"> - <xsl:with-param name=3D"conditional" select=3D"0"/> - </xsl:call-template> - <b> - <xsl:apply-templates select=3D"." mode=3D"label.markup"/> - <xsl:if test=3D"$deflabel =3D 'number' and not(label)"> - <xsl:apply-templates select=3D"." mode=3D"intralabel.punctuati= on"/> - </xsl:if> - </b> - </td> - <td align=3D"left" valign=3D"top"> - <xsl:choose> - <xsl:when test=3D"$deflabel =3D 'none' and not(label)"> - <b><xsl:apply-templates select=3D"*[name(.) !=3D 'label']"/></= b> - </xsl:when> - <xsl:otherwise> - <xsl:apply-templates select=3D"*[name(.) !=3D 'label']"/> - </xsl:otherwise> - </xsl:choose> - </td> - </tr> -</xsl:template> - - -<xsl:template name=3D"process.myqanda.toc"> - <xsl:apply-templates select=3D"qandadiv" mode=3D"qandatoc.mode"/> - <xsl:apply-templates select=3D"qandaentry" mode=3D"myqandatoc.mode"/> -</xsl:template> - - -<xsl:template name=3D"process.qanda.toc"> - <xsl:apply-templates select=3D"qandadiv" mode=3D"qandatoc.mode"/> - <xsl:apply-templates select=3D"qandaentry" mode=3D"qandatoc.mode"/> -</xsl:template> - - -<xsl:template match=3D"qandadiv" mode=3D"qandatoc.mode"> -<dl> - <dt><xsl:apply-templates select=3D"title" mode=3D"qandatoc.mode"/></dt= > - <xsl:call-template name=3D"process.qanda.toc"/> -</dl> -</xsl:template> - - -<!-- this one is used at the top of the page --> -<xsl:template match=3D"question" mode=3D"qandatoc.mode"> - <xsl:variable name=3D"firstch" select=3D"(*[name(.)!=3D'label'])[1]"/> - <xsl:variable name=3D"deflabel"> - <xsl:choose> - <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> - <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] - /@defaultlabel"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select=3D"$qanda.defaultlabel"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <dd> - <xsl:apply-templates select=3D"." mode=3D"label.markup"/> - <xsl:if test=3D"$deflabel =3D 'number' and not(label)"> - <xsl:apply-templates select=3D"." mode=3D"intralabel.punctuation"/= > - </xsl:if> - <xsl:text> </xsl:text> - <a> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D".."/> - </xsl:call-template> - </xsl:attribute> - <xsl:value-of select=3D"$firstch"/> - </a> - </dd> -</xsl:template> - - -<!-- this one is used within table cells --> -<xsl:template match=3D"qandaentry" mode=3D"myqandatoc.mode"> - <xsl:apply-templates select=3D"question" mode=3D"myqandatoc.mode"/> -</xsl:template> - -<xsl:template match=3D"question" mode=3D"myqandatoc.mode"> - <xsl:variable name=3D"firstch" select=3D"(*[name(.)!=3D'label'])[1]"/> - <xsl:variable name=3D"deflabel"> - <xsl:choose> - <xsl:when test=3D"ancestor-or-self::*[@defaultlabel]"> - <xsl:value-of select=3D"(ancestor-or-self::*[@defaultlabel])[las= t()] - /@defaultlabel"/> - </xsl:when> - <xsl:otherwise> - <xsl:value-of select=3D"$qanda.defaultlabel"/> - </xsl:otherwise> - </xsl:choose> - </xsl:variable> - <xsl:apply-templates select=3D"." mode=3D"label.markup"/> - <xsl:if test=3D"$deflabel =3D 'number' and not(label)"> - <xsl:apply-templates select=3D"." mode=3D"intralabel.punctuation"/= > - </xsl:if> - <xsl:text> </xsl:text> - <a> - <xsl:attribute name=3D"href"> - <xsl:call-template name=3D"href.target"> - <xsl:with-param name=3D"object" select=3D".."/> - </xsl:call-template> - </xsl:attribute> - <xsl:value-of select=3D"$firstch"/> - </a> - <br /> -</xsl:template> - - </xsl:stylesheet> Modified: trunk/docs/xml/FAQ.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/xml/FAQ.xml 2005-11-27 04:10:00 UTC (rev 5239) +++ trunk/docs/xml/FAQ.xml 2005-11-27 18:19:40 UTC (rev 5240) @@ -523,10 +523,17 @@ =20 <para>If you think an answer is incomplete or inaccurate, please e-mail <ulink url=3D"mailto:&vg-vemail;">&vg-vemail;</ulink>.</para> - +<!-- <para>Read the appropriate section(s) of the <xref linkend=3D"set-inde= x"/>.</para> +--> + <para>Read the appropriate section(s) of the=20 + <ulink url=3D"&vg-bookset;">Valgrind Documentation</ulink>.</para> =20 +<!-- <para>Read the <xref linkend=3D"dist"/>.</para> +--> + <para>Read the=20 + <ulink url=3D"&vg-dist-docs;">Distribution Documents</ulink>.</para> =20 <para><ulink url=3D"http://search.gmane.org">Search</ulink> the=20 <ulink url=3D"http://news.gmane.org/gmane.comp.debugging.valgrind">val= grind-users</ulink> mailing list archives, using the group name=20 Modified: trunk/docs/xml/vg-entities.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/xml/vg-entities.xml 2005-11-27 04:10:00 UTC (rev 5239) +++ trunk/docs/xml/vg-entities.xml 2005-11-27 18:19:40 UTC (rev 5240) @@ -6,6 +6,8 @@ <!ENTITY vg-users-list "http://lists.sourceforge.net/lists/listinfo/valg= rind-users"> <!ENTITY vg-developers "http://www.valgrind.org/info/developers.html"> <!ENTITY vg-svn-repo "http://www.valgrind.org/downloads/repository.htm= l"> +<!ENTITY vg-bookset "http://www.valgrind.org/docs/manual/index.html"> +<!ENTITY vg-dist-docs "http://www.valgrind.org/docs/manual/dist.html"> =20 =20 <!-- valgrind release + version stuff --> Modified: trunk/memcheck/docs/mc-tech-docs.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/memcheck/docs/mc-tech-docs.xml 2005-11-27 04:10:00 UTC (rev 523= 9) +++ trunk/memcheck/docs/mc-tech-docs.xml 2005-11-27 18:19:40 UTC (rev 524= 0) @@ -2692,12 +2692,9 @@ <para>The first is that we don't want to annotate sources by hand, so the Right Thing to do is to write a C/C++ parser, annotator, prettyprinter which does this automatically, and - run it on post-CPP'd C/C++ source. See - http://www.cacheprof.org for an example of a system which - transparently inserts another phase into the gcc/g++ - compilation route. The parser/prettyprinter is probably not - as hard as it sounds; I would write it in Haskell, a powerful - functional language well suited to doing symbolic + run it on post-CPP'd C/C++ source. The parser/prettyprinter=20 + is probably not as hard as it sounds; I would write it in Haskell,=20 + a powerful functional language well suited to doing symbolic computation, with which I am intimately familar. There is already a C parser written in Haskell by someone in the Haskell community, and that would probably be a good starting |