You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(202) |
Nov
(201) |
Dec
(280) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(493) |
Feb
(106) |
Mar
(215) |
Apr
(163) |
May
(79) |
Jun
(193) |
Jul
(47) |
Aug
(71) |
Sep
(127) |
Oct
(41) |
Nov
(49) |
Dec
(120) |
2005 |
Jan
(147) |
Feb
(45) |
Mar
(26) |
Apr
(71) |
May
(52) |
Jun
(28) |
Jul
(92) |
Aug
(50) |
Sep
(35) |
Oct
(193) |
Nov
(106) |
Dec
(52) |
2006 |
Jan
(51) |
Feb
(38) |
Mar
(33) |
Apr
(79) |
May
(107) |
Jun
(67) |
Jul
(21) |
Aug
(65) |
Sep
(44) |
Oct
(87) |
Nov
(12) |
Dec
(56) |
2007 |
Jan
(48) |
Feb
(58) |
Mar
(63) |
Apr
(31) |
May
(25) |
Jun
(20) |
Jul
(72) |
Aug
(54) |
Sep
(30) |
Oct
(76) |
Nov
(74) |
Dec
(25) |
2008 |
Jan
(39) |
Feb
(39) |
Mar
(62) |
Apr
(64) |
May
(59) |
Jun
(31) |
Jul
(25) |
Aug
(25) |
Sep
(17) |
Oct
(24) |
Nov
|
Dec
(1) |
2009 |
Jan
(60) |
Feb
(39) |
Mar
(16) |
Apr
(30) |
May
(52) |
Jun
(35) |
Jul
(15) |
Aug
(15) |
Sep
(21) |
Oct
(32) |
Nov
(39) |
Dec
(52) |
2010 |
Jan
(42) |
Feb
(40) |
Mar
(23) |
Apr
(20) |
May
(27) |
Jun
(10) |
Jul
(30) |
Aug
(30) |
Sep
(66) |
Oct
(12) |
Nov
(35) |
Dec
(60) |
2011 |
Jan
(16) |
Feb
(1) |
Mar
(3) |
Apr
(28) |
May
(21) |
Jun
|
Jul
(12) |
Aug
(6) |
Sep
(10) |
Oct
(14) |
Nov
(40) |
Dec
(60) |
2012 |
Jan
(23) |
Feb
(17) |
Mar
(24) |
Apr
(18) |
May
(13) |
Jun
(1) |
Jul
|
Aug
(5) |
Sep
|
Oct
(5) |
Nov
(5) |
Dec
(15) |
2013 |
Jan
(2) |
Feb
(5) |
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
(3) |
Jul
|
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2014 |
Jan
(3) |
Feb
(5) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(10) |
Nov
|
Dec
(9) |
2015 |
Jan
(18) |
Feb
(17) |
Mar
(5) |
Apr
(2) |
May
|
Jun
(5) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(24) |
Nov
(20) |
Dec
(41) |
2016 |
Jan
(9) |
Feb
(3) |
Mar
(2) |
Apr
(7) |
May
(8) |
Jun
(1) |
Jul
(6) |
Aug
(5) |
Sep
(2) |
Oct
(6) |
Nov
(1) |
Dec
(6) |
2017 |
Jan
(6) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <fr...@us...> - 2004-01-02 03:02:34
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv9395 Modified Files: menu.shtml Log Message: the documentation is currently not html 4.01 strict Index: menu.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/menu.shtml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- menu.shtml 2 Jan 2004 02:27:43 -0000 1.12 +++ menu.shtml 2 Jan 2004 03:02:31 -0000 1.13 @@ -12,6 +12,8 @@ <p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=34096&type=1" style="border: 0px solid; width: 88px; height: 31px;" alt="SourceForge"></a></p> +<!--#if expr="${SECTION} != /^documentation\//" --> <p><a href="http://validator.w3.org/check/referer"><img style="border: 0px solid; width: 88px; height: 31px;" alt="Valid HTML 4.01!" src="/images/valid-html401.png"></a></p> +<!--#endif --> |
From: <fr...@us...> - 2004-01-02 02:53:09
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv7514 Modified Files: content.shtml Log Message: remove 'go to...' as nobody should yet come to this page anyway Index: content.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/content.shtml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- content.shtml 1 Jan 2004 21:57:33 -0000 1.3 +++ content.shtml 2 Jan 2004 02:53:05 -0000 1.4 @@ -10,4 +10,3 @@ will provide a lot of other services, but the Distribution will still be easy and fast to maintain. </p> -<p class="bigh1"><font color="red">PLEASE GO TO <a href="http://www.devil-linux.org">http://www.devil-linux.org</a></p> \ No newline at end of file |
From: <fr...@us...> - 2004-01-02 02:51:05
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv7191 Modified Files: dl.css Log Message: change menu color to red Index: dl.css =================================================================== RCS file: /cvsroot/devil-linux/web/dl.css,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- dl.css 1 Jan 2004 15:40:41 -0000 1.1.1.1 +++ dl.css 2 Jan 2004 02:51:00 -0000 1.2 @@ -5,7 +5,7 @@ font-size:16px; } -.menu { color: rgb(0, 128, 128); margin-bottom:6px; font-weight:bold; } +.menu { color: rgb(255, 0, 0); margin-bottom:6px; font-weight:bold; } .gray { color: rgb(192, 192, 192); margin-bottom:6px; font-weight:bold; } .bigh1 { color: rgb(0, 128, 128); font-size:36px; margin-bottom:26px; font-weight:bold; } |
From: <fr...@us...> - 2004-01-02 02:27:47
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv3363 Modified Files: menu.shtml Log Message: remove all not currently enabled menu entries Index: menu.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/menu.shtml,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- menu.shtml 2 Jan 2004 02:26:19 -0000 1.11 +++ menu.shtml 2 Jan 2004 02:27:43 -0000 1.12 @@ -6,20 +6,8 @@ <p class="menu"> <!--#if expr="${SECTION} != /1\.0\.x$/" --><a href="/documentation/1.0.x/"><!--#endif -->Version 1.0.x<!--#if expr="${SECTION} != /1\.0\.x$/" --></a><!--#endif --></p> <p class="menu"> <!--#if expr="${SECTION} != /1\.1\.x$/" --><a href="/documentation/1.1.x/"><!--#endif -->Version 1.1.x<!--#if expr="${SECTION} != /1\.1\.x$/" --></a><!--#endif --></p> <!--#endif --> -<!-- -<p class="gray"><!--<a href="download.htm">-->Download<!--</a>--></p> -<p class="gray"><!--<a href="/mailinglist.htm">-->Mailinglists<!--</a>--></p> ---> <p class="menu"><!--#if expr="${SECTION} != sponsors" --><a href="/sponsors/"><!--#endif -->Sponsors<!--#if expr="${SECTION} != sponsors" --></a><!--#endif --></p> -<!-- -<p class="gray"><!--<a href="articles.htm">-->Articles<!--</a>--></p> -<p class="gray"><!--<a href="/poll/results.php">-->Polls<!--</a>--></p> -<p class="gray"><!--<a href="links.htm">-->Links<!--</a>--></p> ---> <p class="menu"><!--#if expr="${SECTION} != donations" --><a href="/donations/"><!--#endif -->Donate<!--#if expr="${SECTION} != donations" --></a><!--#endif --></p> -<!-- -<p class="gray"><!--<a href="/ordercd.htm">-->Order CD<!--</a>--></p> ---> <p><hr style="height: 2px; width: 88px; margin-left: 0px; margin-right: auto;"></p> <p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=34096&type=1" |
From: <fr...@us...> - 2004-01-02 02:26:23
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv3198 Modified Files: menu.shtml Log Message: comment all not currently enabled menu entries Index: menu.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/menu.shtml,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- menu.shtml 2 Jan 2004 02:19:45 -0000 1.10 +++ menu.shtml 2 Jan 2004 02:26:19 -0000 1.11 @@ -6,14 +6,20 @@ <p class="menu"> <!--#if expr="${SECTION} != /1\.0\.x$/" --><a href="/documentation/1.0.x/"><!--#endif -->Version 1.0.x<!--#if expr="${SECTION} != /1\.0\.x$/" --></a><!--#endif --></p> <p class="menu"> <!--#if expr="${SECTION} != /1\.1\.x$/" --><a href="/documentation/1.1.x/"><!--#endif -->Version 1.1.x<!--#if expr="${SECTION} != /1\.1\.x$/" --></a><!--#endif --></p> <!--#endif --> +<!-- <p class="gray"><!--<a href="download.htm">-->Download<!--</a>--></p> <p class="gray"><!--<a href="/mailinglist.htm">-->Mailinglists<!--</a>--></p> +--> <p class="menu"><!--#if expr="${SECTION} != sponsors" --><a href="/sponsors/"><!--#endif -->Sponsors<!--#if expr="${SECTION} != sponsors" --></a><!--#endif --></p> +<!-- <p class="gray"><!--<a href="articles.htm">-->Articles<!--</a>--></p> <p class="gray"><!--<a href="/poll/results.php">-->Polls<!--</a>--></p> <p class="gray"><!--<a href="links.htm">-->Links<!--</a>--></p> +--> <p class="menu"><!--#if expr="${SECTION} != donations" --><a href="/donations/"><!--#endif -->Donate<!--#if expr="${SECTION} != donations" --></a><!--#endif --></p> +<!-- <p class="gray"><!--<a href="/ordercd.htm">-->Order CD<!--</a>--></p> +--> <p><hr style="height: 2px; width: 88px; margin-left: 0px; margin-right: auto;"></p> <p><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=34096&type=1" |
From: <fr...@us...> - 2004-01-02 02:19:48
|
Update of /cvsroot/devil-linux/web In directory sc8-pr-cvs1:/tmp/cvs-serv2162 Modified Files: menu.shtml Log Message: make the menu show the current position in the website by disabling the currently selected page in the menu Index: menu.shtml =================================================================== RCS file: /cvsroot/devil-linux/web/menu.shtml,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- menu.shtml 2 Jan 2004 00:56:56 -0000 1.9 +++ menu.shtml 2 Jan 2004 02:19:45 -0000 1.10 @@ -1,18 +1,18 @@ -<p class="menu"><a href="/" style="text-decoration:none;"><img style="border: 0px solid; width: 88px; height: 97px;" ALT="" src="/images/logos/devil-small-transparent.png"></a><br><a href="/">Home</a></p> -<p class="menu"><a href="/news/">News</a></p> -<p class="menu"><a href="/about/">About DL</a></p> -<p class="menu"><a href="/documentation/">Documentation</a></p> +<p class="menu"><!--#if expr="${SECTION}" --><a href="/" style="text-decoration:none;"><!--#endif --><img style="border: 0px solid; width: 88px; height: 97px;" ALT="" src="/images/logos/devil-small-transparent.png"><!--#if expr="${SECTION}" --></a><!--#endif --><br><!--#if expr="${SECTION}" --><a href="/"><!--#endif -->Home<!--#if expr="${SECTION}" --></a><!--#endif --></p> +<p class="menu"><!--#if expr="${SECTION} != news" --><a href="/news/"><!--#endif -->News<!--#if expr="${SECTION} != news" --></a><!--#endif --></p> +<p class="menu"><!--#if expr="${SECTION} != about" --><a href="/about/"><!--#endif -->About DL<!--#if expr="${SECTION} != about" --></a><!--#endif --></p> +<p class="menu"><!--#if expr="${SECTION} != documentation" --><a href="/documentation/"><!--#endif -->Documentation<!--#if expr="${SECTION} != documentation" --></a><!--#endif --></p> <!--#if expr="${SECTION} = /^documentation/" --> -<p class="gray"> <a href="/documentation/1.0.x/">Version 1.0.x</a></p> -<p class="gray"> <a href="/documentation/1.1.x/">Version 1.1.x</a></p> +<p class="menu"> <!--#if expr="${SECTION} != /1\.0\.x$/" --><a href="/documentation/1.0.x/"><!--#endif -->Version 1.0.x<!--#if expr="${SECTION} != /1\.0\.x$/" --></a><!--#endif --></p> +<p class="menu"> <!--#if expr="${SECTION} != /1\.1\.x$/" --><a href="/documentation/1.1.x/"><!--#endif -->Version 1.1.x<!--#if expr="${SECTION} != /1\.1\.x$/" --></a><!--#endif --></p> <!--#endif --> <p class="gray"><!--<a href="download.htm">-->Download<!--</a>--></p> <p class="gray"><!--<a href="/mailinglist.htm">-->Mailinglists<!--</a>--></p> -<p class="menu"><a href="/sponsors/">Sponsors</a></p> +<p class="menu"><!--#if expr="${SECTION} != sponsors" --><a href="/sponsors/"><!--#endif -->Sponsors<!--#if expr="${SECTION} != sponsors" --></a><!--#endif --></p> <p class="gray"><!--<a href="articles.htm">-->Articles<!--</a>--></p> <p class="gray"><!--<a href="/poll/results.php">-->Polls<!--</a>--></p> <p class="gray"><!--<a href="links.htm">-->Links<!--</a>--></p> -<p class="menu"><a href="/donations/">Donate</a></p> +<p class="menu"><!--#if expr="${SECTION} != donations" --><a href="/donations/"><!--#endif -->Donate<!--#if expr="${SECTION} != donations" --></a><!--#endif --></p> <p class="gray"><!--<a href="/ordercd.htm">-->Order CD<!--</a>--></p> <p><hr style="height: 2px; width: 88px; margin-left: 0px; margin-right: auto;"></p> <p><a href="http://sourceforge.net"><img |
From: <smi...@us...> - 2004-01-02 02:18:32
|
Update of /cvsroot/devil-linux/scripts/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv2000 Modified Files: generate_docs_from_cvs Log Message: corrected path Index: generate_docs_from_cvs =================================================================== RCS file: /cvsroot/devil-linux/scripts/webtools/generate_docs_from_cvs,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- generate_docs_from_cvs 2 Jan 2004 02:10:26 -0000 1.10 +++ generate_docs_from_cvs 2 Jan 2004 02:18:28 -0000 1.11 @@ -68,7 +68,7 @@ ${MODULE}/stylesheets/html${style:+_$style}${type:+_$type}.xsl || exit 1 echo Cleaning up the HTML - for F in $(find output.html -name "*.html") + for F in $(find ${THIS_DOCU_PATH} -name "*.html") do ${MODULE}/tools/tidy -m $F done |
From: <smi...@us...> - 2004-01-02 02:12:45
|
Update of /cvsroot/devil-linux/build/docs/documentation/tools In directory sc8-pr-cvs1:/tmp/cvs-serv1192 Added Files: Tag: rel-1-0-patches tidy Log Message: produce cleaner html code --- NEW FILE: tidy --- (This appears to be a binary file; contents omitted.) |
From: <smi...@us...> - 2004-01-02 02:10:29
|
Update of /cvsroot/devil-linux/scripts/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv767 Modified Files: generate_docs_from_cvs Log Message: used wrong path name Index: generate_docs_from_cvs =================================================================== RCS file: /cvsroot/devil-linux/scripts/webtools/generate_docs_from_cvs,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- generate_docs_from_cvs 2 Jan 2004 02:07:27 -0000 1.9 +++ generate_docs_from_cvs 2 Jan 2004 02:10:26 -0000 1.10 @@ -70,7 +70,7 @@ echo Cleaning up the HTML for F in $(find output.html -name "*.html") do - ${MODULE}/docs/documentation/tools/tidy -m $F + ${MODULE}/tools/tidy -m $F done mkdir -p output.html/images/ || exit 1 |
From: <smi...@us...> - 2004-01-02 02:07:31
|
Update of /cvsroot/devil-linux/scripts/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv316 Modified Files: generate_docs_from_cvs Log Message: use tidy to clean up the html code Index: generate_docs_from_cvs =================================================================== RCS file: /cvsroot/devil-linux/scripts/webtools/generate_docs_from_cvs,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- generate_docs_from_cvs 2 Jan 2004 02:03:32 -0000 1.8 +++ generate_docs_from_cvs 2 Jan 2004 02:07:27 -0000 1.9 @@ -67,6 +67,12 @@ ${MODULE}/documentation.xml \ ${MODULE}/stylesheets/html${style:+_$style}${type:+_$type}.xsl || exit 1 + echo Cleaning up the HTML + for F in $(find output.html -name "*.html") + do + ${MODULE}/docs/documentation/tools/tidy -m $F + done + mkdir -p output.html/images/ || exit 1 cp -dpR ${MODULE}/stylesheets/images/*.png output.html/images || exit 1 cp -dpR ${MODULE}/documentation.css output.html || exit 1 |
From: <fr...@us...> - 2004-01-02 02:03:38
|
Update of /cvsroot/devil-linux/scripts/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv32270 Modified Files: generate_docs_from_cvs Log Message: integrate documentation with working navigation into website Index: generate_docs_from_cvs =================================================================== RCS file: /cvsroot/devil-linux/scripts/webtools/generate_docs_from_cvs,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- generate_docs_from_cvs 1 Jan 2004 23:35:40 -0000 1.7 +++ generate_docs_from_cvs 2 Jan 2004 02:03:32 -0000 1.8 @@ -16,6 +16,10 @@ # the module of the documentation MODULE="build/docs/documentation" +# where to generate the documentation +DOC_PATH="docu" +WEB_PATH="documentation" + #------------------------------------# # nothing to config below this line! # #------------------------------------# @@ -27,13 +31,21 @@ function xml_docs { - local version=$1 # the version of the documentation (just printed to the user ;-) + local version=$1 # the version of the documentation local tag=$2 # the cvs release tag, head if empty local type="" # the type of docu, empty for multiple files or single for one local style="" # use special style for devil homepage + local THIS_DOCU_PATH=${DOC_PATH}/$version + local THIS_WEB_PATH=${WEB_PATH}/$version + + # clean up first as someone might have messed up before + rm -rf build output.html + echo "generating docs for version $version" - test -d build && rm -rf build + + # create final dir for documentation + mkdir -p ${THIS_DOCU_PATH} # check if we need to log in to CVS [ -f ~/.cvspass ] || cvs -d${CVS_ROOT} login || exit 1 @@ -43,8 +55,12 @@ # generate one file or many? [ "$SINGLE" = "yes" ] && type="single" + # use special style sheet when generating for the devil homepage? [ "$HOMEPAGE" = "yes" ] && style="devil_homepage" - + + # link output.html to final destination directory + ln -s ${THIS_DOCU_PATH} output.html + echo Generating HTML java -cp $(pwd)/${MODULE}/java/saxon.jar \ com.icl.saxon.StyleSheet \ @@ -55,10 +71,40 @@ cp -dpR ${MODULE}/stylesheets/images/*.png output.html/images || exit 1 cp -dpR ${MODULE}/documentation.css output.html || exit 1 cp -dpR ${MODULE}/images/*.png output.html/images || exit 1 - #mv output.html/index.html output.html/documentation.html - mv output.html docu/$1 || exit 1 - rm -rf build + # clean up behind us + rm -rf build output.html + + # post processing + echo postprocessing: + for FILE in $(ls -1 ${THIS_DOCU_PATH}/*.html); do + SRC_FILE=${FILE##*/} + THIS_PAGE=${SRC_FILE%\.*} + DST_FILE=${THIS_PAGE}.shtml + CONTENT_FILE=content_${DST_FILE} + HEAD_FILE=head_${DST_FILE} + + echo " * ${SRC_FILE} -> ${DST_FILE}, ${HEAD_FILE}, ${CONTENT_FILE}" + + # filter the content for the "right frame" and replace all local + # references to xxx.html with xxx.shtml + sed -e 's|\("[a-z0-9]\+\)\.html\(\(#[a-z0-9]\+\)\?"\)|\1.shtml\2|g' <${THIS_DOCU_PATH}/${SRC_FILE} >${THIS_DOCU_PATH}/${CONTENT_FILE} + + # the head section +# cat > ${THIS_DOCU_PATH}/${HEAD_FILE} <<-EOF +# <!-- HEADER comes here --> +#EOF + touch ${THIS_DOCU_PATH}/${HEAD_FILE} + + # this will put all together incl. the navigation + cat > ${THIS_DOCU_PATH}/${DST_FILE} <<-EOF + <!--#set var="THIS_PAGE" value="${THIS_PAGE}" --><!--#set var="SECTION" value="${THIS_WEB_PATH}" --><!--#include virtual="../../index.shtml" --> +EOF + + # file processed therefore we don't need it anymore + rm -f ${THIS_DOCU_PATH}/${SRC_FILE} + + done } cd /home/groups/d/de/devil-linux || exit 1 @@ -76,7 +122,6 @@ done echo -n "Cleaning up and updating rights..." -find docu/ -type d -name CVS | xargs rm -rf find docu/ -type f | xargs chmod 0664 find docu/ -type d | xargs chmod 2775 echo done. |
From: <smi...@us...> - 2004-01-02 02:02:25
|
Update of /cvsroot/devil-linux/build/docs/documentation In directory sc8-pr-cvs1:/tmp/cvs-serv32053 Modified Files: htmldoc Added Files: gen_html_stylesheets Log Message: produce cleaner html code --- NEW FILE: gen_html_stylesheets --- xsltproc -o stylesheets/html/titlepage-new.xsl stylesheets/template/titlepage.xsl stylesheets/html/titlepage-new.xml Index: htmldoc =================================================================== RCS file: /cvsroot/devil-linux/build/docs/documentation/htmldoc,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- htmldoc 2 Jan 2004 00:02:18 -0000 1.4 +++ htmldoc 2 Jan 2004 02:02:21 -0000 1.5 @@ -19,6 +19,8 @@ cp -dpR documentation.css output.html || exit 1 cp -dpR images/*.png output.html/images || exit 1 -#rem cleanup the HTML -#for /R output.html/ %%F in (*.html) do tools/tidy -m %%F -#rem -f "%%F.log" +echo cleanup the HTML +for F in $(find output.html -name "*.html") +do + tools/tidy -m $F +done \ No newline at end of file |
From: <smi...@us...> - 2004-01-02 02:02:25
|
Update of /cvsroot/devil-linux/build/docs/documentation/tools In directory sc8-pr-cvs1:/tmp/cvs-serv32053/tools Added Files: tidy Log Message: produce cleaner html code --- NEW FILE: tidy --- (This appears to be a binary file; contents omitted.) |
From: <fr...@us...> - 2004-01-02 01:13:02
|
Update of /cvsroot/devil-linux/scripts/webtools In directory sc8-pr-cvs1:/tmp/cvs-serv24634 Modified Files: update_web_from_cvs Log Message: do not checkout empty directories Index: update_web_from_cvs =================================================================== RCS file: /cvsroot/devil-linux/scripts/webtools/update_web_from_cvs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- update_web_from_cvs 1 Jan 2004 19:30:07 -0000 1.4 +++ update_web_from_cvs 2 Jan 2004 01:12:59 -0000 1.5 @@ -6,7 +6,7 @@ [ -f ~/.cvspass ] || cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux login || exit 1 echo "Getting files from cvs:" -cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux co web > /dev/null || exit 1 +cvs -d:pserver:ano...@cv...:/cvsroot/devil-linux checkout -P web > /dev/null || exit 1 echo "Copying the documentation" cp -R docu/* web/documentation/ |
From: <fr...@us...> - 2004-01-02 01:03:51
|
Update of /cvsroot/devil-linux/web/documentation/1.1.x In directory sc8-pr-cvs1:/tmp/cvs-serv23129/1.1.x Removed Files: content.shtml head.shtml index.shtml Log Message: remove unneeded file, they get generated now --- content.shtml DELETED --- --- head.shtml DELETED --- --- index.shtml DELETED --- |
From: <fr...@us...> - 2004-01-02 01:03:51
|
Update of /cvsroot/devil-linux/web/documentation/1.0.x In directory sc8-pr-cvs1:/tmp/cvs-serv23129/1.0.x Removed Files: content.shtml head.shtml index.shtml Log Message: remove unneeded file, they get generated now --- content.shtml DELETED --- --- head.shtml DELETED --- --- index.shtml DELETED --- |
From: <smi...@us...> - 2004-01-02 01:03:18
|
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets In directory sc8-pr-cvs1:/tmp/cvs-serv23035/stylesheets Modified Files: html.xsl html_single.xsl Log Message: produce cleaner html code Index: html.xsl =================================================================== RCS file: /cvsroot/devil-linux/build/docs/documentation/stylesheets/html.xsl,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- html.xsl 2 Jan 2004 00:39:24 -0000 1.8 +++ html.xsl 2 Jan 2004 01:03:14 -0000 1.9 @@ -6,17 +6,17 @@ <xsl:include href="style.xsl"/> <xsl:include href="html/titlepage-new.xsl"/> -<xsl:param name="base.dir" select="'output.html/'"/> -<xsl:param name="navig.graphics" select="1"/> +<xsl:param name="base.dir" select="'output.html/'"></xsl:param> +<xsl:param name="navig.graphics" select="1"></xsl:param> <xsl:param name="navig.graphics.extension" select="'.png'"/> -<xsl:param name="admon.graphics" select="1"/> -<xsl:param name="admon.graphics.extension" select="'.png'"/> +<xsl:param name="admon.graphics" select="1"></xsl:param> +<xsl:param name="admon.graphics.extension" select="'.png'"></xsl:param> <xsl:param name="css.decoration">0</xsl:param> -<xsl:param name="table.borders.with.css" select="0"/> +<xsl:param name="table.borders.with.css" select="0"></xsl:param> <xsl:param name="html.stylesheet.type">text/css</xsl:param> -<xsl:param name="html.stylesheet" select="'documentation.css'"/> -<xsl:param name="chunk.section.depth" select="1"/> -<xsl:param name="chunk.first.sections" select="1"/> +<xsl:param name="html.stylesheet" select="'documentation.css'"></xsl:param> +<xsl:param name="chunk.section.depth" select="1"></xsl:param> +<xsl:param name="chunk.first.sections" select="1"></xsl:param> <xsl:param name="make.valid.html" select="1"></xsl:param> <xsl:param name="html.cleanup" select="1"></xsl:param> Index: html_single.xsl =================================================================== RCS file: /cvsroot/devil-linux/build/docs/documentation/stylesheets/html_single.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- html_single.xsl 2 Jan 2004 00:39:24 -0000 1.5 +++ html_single.xsl 2 Jan 2004 01:03:14 -0000 1.6 @@ -6,16 +6,18 @@ <xsl:include href="style.xsl"/> <xsl:include href="html/titlepage-new.xsl"/> -<xsl:param name="base.dir" select="'output.html/'"/> -<xsl:param name="navig.graphics" select="1"/> +<xsl:param name="base.dir" select="'output.html/'"></xsl:param> +<xsl:param name="navig.graphics" select="1"></xsl:param> <xsl:param name="navig.graphics.extension" select="'.png'"/> -<xsl:param name="admon.graphics" select="1"/> -<xsl:param name="admon.graphics.extension" select="'.png'"/> +<xsl:param name="admon.graphics" select="1"></xsl:param> +<xsl:param name="admon.graphics.extension" select="'.png'"></xsl:param> <xsl:param name="css.decoration">0</xsl:param> -<xsl:param name="table.borders.with.css" select="0"/> +<xsl:param name="table.borders.with.css" select="0"></xsl:param> <xsl:param name="html.stylesheet.type">text/css</xsl:param> -<xsl:param name="html.stylesheet" select="'documentation.css'"/> -<xsl:param name="chunk.section.depth" select="1"/> -<xsl:param name="chunk.first.sections" select="1"/> +<xsl:param name="html.stylesheet" select="'documentation.css'"></xsl:param> +<xsl:param name="chunk.section.depth" select="1"></xsl:param> +<xsl:param name="chunk.first.sections" select="1"></xsl:param> +<xsl:param name="make.valid.html" select="1"></xsl:param> +<xsl:param name="html.cleanup" select="1"></xsl:param> </xsl:stylesheet> |
From: <smi...@us...> - 2004-01-02 01:00:07
|
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/tools In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/tools Added Files: ChangeLog Log Message: so that's hopefully it, with the new stylesheets |
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/tools/olink In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/tools/olink Added Files: ChangeLog olink-common.xsl olink.xsl olinkchunk.xsl olinksum.dtd Log Message: so that's hopefully it, with the new stylesheets |
From: <smi...@us...> - 2004-01-02 01:00:06
|
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/tools/profile In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/tools/profile Added Files: ChangeLog profile.xsl Log Message: so that's hopefully it, with the new stylesheets |
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/xhtml In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/xhtml Added Files: ChangeLog admon.xsl autoidx.xsl autotoc.xsl biblio.xsl block.xsl callout.xsl changebars.xsl chunk-code.xsl chunk-common.xsl chunk.xsl chunker.xsl chunkfast.xsl chunktoc.xsl component.xsl division.xsl docbook.xsl ebnf.xsl footnote.xsl formal.xsl glossary.xsl graphics.xsl html-rtf.xsl html.xsl html2xhtml.xsl htmltbl.xsl index.xsl info.xsl inline.xsl keywords.xsl lists.xsl maketoc.xsl manifest.xsl math.xsl oldchunker.xsl onechunk.xsl param.xsl pi.xsl profile-chunk-code.xsl profile-chunk.xsl profile-docbook.xsl profile-onechunk.xsl qandaset.xsl refentry.xsl sections.xsl synop.xsl table.xsl task.xsl titlepage.templates.xsl titlepage.xsl toc.xsl verbatim.xsl xref.xsl Log Message: so that's hopefully it, with the new stylesheets |
From: <smi...@us...> - 2004-01-02 01:00:06
|
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/template In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/template Added Files: ChangeLog README biblioentry.xsl testtemplate.xml titlepage.xsl Log Message: so that's hopefully it, with the new stylesheets |
From: <smi...@us...> - 2004-01-02 01:00:05
|
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/javahelp In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/javahelp Added Files: ChangeLog javahelp.xsl profile-javahelp.xsl Log Message: so that's hopefully it, with the new stylesheets --- NEW FILE: ChangeLog --- 2002-11-25 Jirka Kosek <ko...@us...> * javahelp.xsl: Fixed mode name collision problem. 2002-06-03 Jirka Kosek <ko...@us...> * Makefile: Added dependencies for profiling stylesheets 2002-05-17 Norman Walsh <nw...@us...> * javahelp.xsl: Put ancillary files in base.dir 2002-03-14 Norman Walsh <nw...@us...> * .cvsignore: New file. * javahelp.xsl: Whitespace only: change CR/LF back to LF. Norm was a total moron. * javahelp.xsl: Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr. 2002-03-01 Jirka Kosek <ko...@us...> * Makefile: New file. 2001-11-27 Norman Walsh <nw...@us...> * javahelp-common.xsl, javahelp.xsl, xtjavahelp.xsl: Removed obsolete XT support; added support for rootid parameter * javahelp.xsl: Fixed simple select typo 2001-05-20 Jirka Kosek <ko...@us...> * javahelp-common.xsl: Fixed bug #425149, colphons and articles inside book are now handled 2001-04-04 Norman Walsh <nw...@us...> * javahelp-common.xsl, javahelp.xsl, xtjavahelp.xsl: New file. --- NEW FILE: javahelp.xsl --- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" version="1.0" exclude-result-prefixes="doc"> <xsl:import href="../html/chunk.xsl"/> <xsl:output method="html"/> <!-- ******************************************************************** $Id: javahelp.xsl,v 1.1 2004/01/02 00:39:33 smiley73 Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> <xsl:param name="javahelp.encoding" select="'ISO-8859-1'"/> <doc:param name="javahelp.encoding" xmlns=""> <refpurpose>Character encoding to use in control files for Java Help.</refpurpose> <refdescription> <para>Java Help crashes on some characters when written as character references. In that case you can select appropriate encoding here.</para> </refdescription> </doc:param> <!-- ==================================================================== --> <xsl:template match="/"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:choose> <xsl:when test="count(key('id',$rootid)) = 0"> <xsl:message terminate="yes"> <xsl:text>ID '</xsl:text> <xsl:value-of select="$rootid"/> <xsl:text>' not found in document.</xsl:text> </xsl:message> </xsl:when> <xsl:otherwise> <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message> <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="/" mode="process.root"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="helpset"/> <xsl:call-template name="helptoc"/> <xsl:call-template name="helpmap"/> <xsl:call-template name="helpidx"/> </xsl:template> <xsl:template name="header.navigation"> </xsl:template> <xsl:template name="footer.navigation"> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpset"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelpset.hs')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/helpset_1_0.dtd'"/> <xsl:with-param name="content"> <xsl:call-template name="helpset.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpset.content"> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <helpset version="1.0"> <title> <xsl:value-of select="$title"/> </title> <!-- maps --> <maps> <homeID>top</homeID> <mapref location="jhelpmap.jhm"/> </maps> <!-- views --> <view> <name>TOC</name> <label>Table Of Contents</label> <type>javax.help.TOCView</type> <data>jhelptoc.xml</data> </view> <view> <name>Index</name> <label>Index</label> <type>javax.help.IndexView</type> <data>jhelpidx.xml</data> </view> <view> <name>Search</name> <label>Search</label> <type>javax.help.SearchView</type> <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data> </view> </helpset> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helptoc"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelptoc.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/toc_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helptoc.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helptoc.content"> <toc version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)" mode="jhtoc"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="jhtoc"/> </xsl:otherwise> </xsl:choose> </toc> </xsl:template> <xsl:template match="set" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="book" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="book" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="part|reference|preface|chapter|appendix|article|colophon" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="preface|chapter|appendix|refentry|section|sect1" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="section" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="section" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect1" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect2" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect2" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect3" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect3" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect4" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect4" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect5" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect5|colophon" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> </tocitem> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpmap"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpmap.jhm')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/map_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpmap.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpmap.content"> <map version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//set | key('id',$rootid)//book | key('id',$rootid)//part | key('id',$rootid)//reference | key('id',$rootid)//preface | key('id',$rootid)//chapter | key('id',$rootid)//appendix | key('id',$rootid)//article | key('id',$rootid)//colophon | key('id',$rootid)//refentry | key('id',$rootid)//section | key('id',$rootid)//sect1 | key('id',$rootid)//sect2 | key('id',$rootid)//sect3 | key('id',$rootid)//sect4 | key('id',$rootid)//sect5 | key('id',$rootid)//indexterm" mode="map"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//set | //book | //part | //reference | //preface | //chapter | //appendix | //article | //colophon | //refentry | //section | //sect1 | //sect2 | //sect3 | //sect4 | //sect5 | //indexterm" mode="map"/> </xsl:otherwise> </xsl:choose> </map> </xsl:template> <xsl:template match="set" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="book" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="section|sect1|sect2|sect3|sect4|sect5|colophon" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="indexterm" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpidx"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpidx.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Index Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/index_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpidx.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpidx.content"> <index version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//indexterm" mode="idx"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//indexterm" mode="idx"/> </xsl:otherwise> </xsl:choose> </index> </xsl:template> <xsl:template match="indexterm" mode="idx"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="text"> <xsl:value-of select="primary"/> <xsl:if test="secondary"> <xsl:text>, </xsl:text> <xsl:value-of select="secondary"/> </xsl:if> <xsl:if test="tertiary"> <xsl:text>, </xsl:text> <xsl:value-of select="tertiary"/> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="see"> <xsl:variable name="see"><xsl:value-of select="see"/></xsl:variable> <indexitem text="{$text} see '{$see}'"/> </xsl:when> <xsl:otherwise> <indexitem text="{$text}" target="{$id}"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- ==================================================================== --> </xsl:stylesheet> --- NEW FILE: profile-javahelp.xsl --- <?xml version="1.0" encoding="US-ASCII"?> <!--This file was created automatically by xsl2profile--> <!--from the DocBook XSL stylesheets. Do not edit this file.--> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns:exslt="http://exslt.org/common" exslt:dummy="dummy" extension-element-prefixes="exslt" version="1.0" exclude-result-prefixes="doc exslt"> <xsl:import href="../html/chunk.xsl"/> <xsl:output method="html"/> <!-- ******************************************************************** $Id: profile-javahelp.xsl,v 1.1 2004/01/02 00:39:33 smiley73 Exp $ ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. See ../README or http://nwalsh.com/docbook/xsl/ for copyright and other information. ******************************************************************** --> <!-- ==================================================================== --> <xsl:param name="javahelp.encoding" select="'ISO-8859-1'"/> <doc:param name="javahelp.encoding"> <refpurpose>Character encoding to use in control files for Java Help.</refpurpose> <refdescription> <para>Java Help crashes on some characters when written as character references. In that case you can select appropriate encoding here.</para> </refdescription> </doc:param> <!-- ==================================================================== --> <xslo:include xmlns:xslo="http://www.w3.org/1999/XSL/Transform" href="../profiling/profile-mode.xsl"/><xsl:template match="/"><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-content"><xslo:apply-templates select="." mode="profile"/></xslo:variable><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-nodes" select="exslt:node-set($profiled-content)"/> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:choose> <xsl:when test="count($profiled-nodes//*[@id=$rootid]) = 0"> <xsl:message terminate="yes"> <xsl:text>ID '</xsl:text> <xsl:value-of select="$rootid"/> <xsl:text>' not found in document.</xsl:text> </xsl:message> </xsl:when> <xsl:otherwise> <xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message> <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="process.root"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="$profiled-nodes" mode="process.root"/> </xsl:otherwise> </xsl:choose> <xsl:call-template name="helpset"/> <xsl:call-template name="helptoc"/> <xsl:call-template name="helpmap"/> <xsl:call-template name="helpidx"/> </xsl:template> <xsl:template name="header.navigation"> </xsl:template> <xsl:template name="footer.navigation"> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpset"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelpset.hs')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/helpset_1_0.dtd'"/> <xsl:with-param name="content"> <xsl:call-template name="helpset.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpset.content"> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <helpset version="1.0"> <title> <xsl:value-of select="$title"/> </title> <!-- maps --> <maps> <homeID>top</homeID> <mapref location="jhelpmap.jhm"/> </maps> <!-- views --> <view> <name>TOC</name> <label>Table Of Contents</label> <type>javax.help.TOCView</type> <data>jhelptoc.xml</data> </view> <view> <name>Index</name> <label>Index</label> <type>javax.help.IndexView</type> <data>jhelpidx.xml</data> </view> <view> <name>Search</name> <label>Search</label> <type>javax.help.SearchView</type> <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data> </view> </helpset> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helptoc"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir,'jhelptoc.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp TOC Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/toc_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helptoc.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helptoc.content"> <toc version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)" mode="jhtoc"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="jhtoc"/> </xsl:otherwise> </xsl:choose> </toc> </xsl:template> <xsl:template match="set" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="book" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="book" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="part|reference|preface|chapter|appendix|article|colophon" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="preface|chapter|appendix|refentry|section|sect1" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="section" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="section" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect1" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect2" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect2" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect3" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect3" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect4" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect4" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> <xsl:apply-templates select="sect5" mode="jhtoc"/> </tocitem> </xsl:template> <xsl:template match="sect5|colophon" mode="jhtoc"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="title"> <xsl:apply-templates select="." mode="title.markup"/> </xsl:variable> <tocitem target="{$id}"> <xsl:attribute name="text"> <xsl:value-of select="$title"/> </xsl:attribute> </tocitem> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpmap"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpmap.jhm')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Map Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/map_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpmap.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpmap.content"> <map version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//set | key('id',$rootid)//book | key('id',$rootid)//part | key('id',$rootid)//reference | key('id',$rootid)//preface | key('id',$rootid)//chapter | key('id',$rootid)//appendix | key('id',$rootid)//article | key('id',$rootid)//colophon | key('id',$rootid)//refentry | key('id',$rootid)//section | key('id',$rootid)//sect1 | key('id',$rootid)//sect2 | key('id',$rootid)//sect3 | key('id',$rootid)//sect4 | key('id',$rootid)//sect5 | key('id',$rootid)//indexterm" mode="map"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//set | //book | //part | //reference | //preface | //chapter | //appendix | //article | //colophon | //refentry | //section | //sect1 | //sect2 | //sect3 | //sect4 | //sect5 | //indexterm" mode="map"/> </xsl:otherwise> </xsl:choose> </map> </xsl:template> <xsl:template match="set" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"> <xsl:with-param name="object" select="."/> </xsl:call-template> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="book" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="part|reference|preface|chapter|appendix|article" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="section|sect1|sect2|sect3|sect4|sect5|colophon" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <xsl:template match="indexterm" mode="map"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <mapID target="{$id}"> <xsl:attribute name="url"> <xsl:apply-templates mode="chunk-filename" select="."/> </xsl:attribute> </mapID> </xsl:template> <!-- ==================================================================== --> <xsl:template name="helpidx"> <xsl:call-template name="write.chunk.with.doctype"> <xsl:with-param name="filename" select="concat($base.dir, 'jhelpidx.xml')"/> <xsl:with-param name="method" select="'xml'"/> <xsl:with-param name="indent" select="'yes'"/> <xsl:with-param name="doctype-public" select="'-//Sun Microsystems Inc.//DTD JavaHelp Index Version 1.0//EN'"/> <xsl:with-param name="doctype-system" select="'http://java.sun.com/products/javahelp/index_1_0.dtd'"/> <xsl:with-param name="encoding" select="$javahelp.encoding"/> <xsl:with-param name="content"> <xsl:call-template name="helpidx.content"/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template name="helpidx.content"> <index version="1.0"> <xsl:choose> <xsl:when test="$rootid != ''"> <xsl:apply-templates select="key('id',$rootid)//indexterm" mode="idx"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="//indexterm" mode="idx"/> </xsl:otherwise> </xsl:choose> </index> </xsl:template> <xsl:template match="indexterm" mode="idx"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <xsl:variable name="text"> <xsl:value-of select="primary"/> <xsl:if test="secondary"> <xsl:text>, </xsl:text> <xsl:value-of select="secondary"/> </xsl:if> <xsl:if test="tertiary"> <xsl:text>, </xsl:text> <xsl:value-of select="tertiary"/> </xsl:if> </xsl:variable> <xsl:choose> <xsl:when test="see"> <xsl:variable name="see"><xsl:value-of select="see"/></xsl:variable> <indexitem text="{$text} see '{$see}'"/> </xsl:when> <xsl:otherwise> <indexitem text="{$text}" target="{$id}"/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- ==================================================================== --> </xsl:stylesheet> |
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/manpages In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/manpages Added Files: ChangeLog README docbook.xsl lists.xsl sect23.xsl synop.xsl xref.xsl Log Message: so that's hopefully it, with the new stylesheets --- NEW FILE: ChangeLog --- 2003-12-15 <tw...@us...> * lists.xsl: Fix nested lists properly. 2003-12-13 <tw...@us...> * docbook.xsl: Use .nf environment for literallayout. * docbook.xsl: Prevent duplicate .nf environments inside informalexample or screen. All fiftenn allowed contained element in these elements will provide its own. 2003-12-12 <tw...@us...> * docbook.xsl: Last commit reverted a previous change -- redo it. 2003-12-11 <tw...@us...> * docbook.xsl: Remove unused rule. * docbook.xsl: Fix literallayout inside para. * lists.xsl: Fix singly-nested lists. 2003-12-10 <tw...@us...> * docbook.xsl: Don't mess up roff markup in tables. 2003-11-06 <tw...@us...> * lists.xsl, synop.xsl: 2003-11-06 Tim Waugh <tw...@re...> * lists.xsl: Normalize space in itemizedlist/listitem. * synop.xsl: Likewise. 2003-05-23 <tw...@us...> * synop.xsl: Only escape option spaces once when args are nested. 2003-05-15 <tw...@us...> * docbook.xsl: Handle refsection as well as refsect1|refsect2 in the manpages stylesheet. 2003-05-09 Norman Walsh <nw...@us...> * synop.xsl, synop.xsl: Patch from Tim Waugh 2003-04-12 Norman Walsh <nw...@us...> * docbook.xsl, synop.xsl: Patches from Tim Waugh 2003-03-15 <jo...@us...> * docbook.xsl: If the refmeta contains no manvolnum, then: - if the refentry contains a funcsynopsis, default to section 3 - otherwise, default to section 1 * docbook.xsl: Don't try and generate man pages with spaces in the filename; replace spaces with underscores. 2003-01-05 <jo...@us...> * docbook.xsl: Second half of fix for #628888: add template for <optional>. * docbook.xsl: Add replacement ulink template from xmlto, fixing bug #619500. Written by Tim Waugh. * docbook.xsl: First part of fix for #628888: - don't use generic italic/bold templates for things like <replaceable>, since <replaceable> can contain other elements, but the templates discard any non-PCDATA content. * docbook.xsl: Prevent a line beginning with a '.' character being interpreted as a troff macro by inserting \& (a zero-width space) before every '.' in text. * xref.xsl: Make xref work again, though I'm not sure why it stopped working. 2002-09-20 Norman Walsh <nw...@us...> * synop.xsl: Joe Orton: Use replace-string from lib.xsl 2002-09-18 Norman Walsh <nw...@us...> * db2man.xsl, docbook.xsl: Renamed * docbook.xsl: Joe Orton: patch to get rid of extra whitespace in author names 2002-09-17 Norman Walsh <nw...@us...> * db2man.xsl: Another patch from Joe Orton * db2man.xsl, synop.xsl: Patch from Joe Orton 2002-07-04 Norman Walsh <nw...@us...> * README, db2man.xsl, lists.xsl, sect23.xsl, synop.xsl, xref.xsl: New file. --- NEW FILE: README --- README for db2man by Martijn van Beers (lo...@us...) I've been working on some stylesheets to convert <refentry>s to man format. I thought I'd submit what I have for inclusion in the docbook-xsl package. See also: http://sourceforge.net/tracker/index.php?func=detail&aid=468779&group_id=21935&atid=373749 --- NEW FILE: docbook.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:import href="../html/docbook.xsl"/> <xsl:include href="synop.xsl"/> <xsl:include href="lists.xsl"/> <xsl:include href="xref.xsl"/> <!-- Needed for chunker.xsl (for now): --> <xsl:param name="chunker.output.method" select="'text'"/> <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/> <xsl:output method="text" encoding="ISO-8859-1" indent="no"/> <!-- named templates for bold and italic. call like: <xsl:apply-templates mode="bold" select="node-you-want" /> --> <xsl:template mode="bold" match="*"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:text>\fB</xsl:text> <xsl:value-of select="$content"/> <xsl:text>\fR</xsl:text> </xsl:template> <xsl:template mode="italic" match="*"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:text>\fI</xsl:text> <xsl:value-of select="$content"/> <xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="caution|important|note|tip|warning"> <xsl:text> .RS .Sh "</xsl:text> <!-- capitalize word --> <xsl:value-of select="translate (substring (name(.), 1, 1), 'cintw', 'CINTW')" /> <xsl:value-of select="substring (name(), 2)" /> <xsl:if test="title"> <xsl:text>: </xsl:text> <xsl:value-of select="title[1]"/> </xsl:if> <xsl:text>" </xsl:text> <xsl:apply-templates/> <xsl:text> .RE </xsl:text> </xsl:template> <xsl:template match="refsection|refsect1"> <xsl:choose> <xsl:when test="ancestor::refsection"> <xsl:text> .SS "</xsl:text> <xsl:value-of select="title[1]"/> </xsl:when> <xsl:otherwise> <xsl:text> .SH "</xsl:text> <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> </xsl:otherwise> </xsl:choose> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsect2"> <xsl:text> .SS "</xsl:text> <xsl:value-of select="title[1]"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsynopsisdiv"> <xsl:text> .SH "SYNOPSIS" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="para"> <xsl:text> .PP </xsl:text> <xsl:for-each select="node()"> <xsl:choose> <xsl:when test="self::literallayout|self::informaltable|self::screen|self::programlisting|self::itemizedlist|self::orderedlist|self::variablelist"> <xsl:text> </xsl:text> <xsl:apply-templates select="."/> </xsl:when> <xsl:when test="self::text()"> <xsl:if test="starts-with(translate(.,' ',' '), ' ') and preceding-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> <xsl:if test="translate(substring(., string-length(.), 1),' ',' ') = ' ' and following-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="simpara"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:text> </xsl:text> <xsl:value-of select="normalize-space($content)"/> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="refentry"> <xsl:variable name="section"> <xsl:choose> <xsl:when test="refmeta/manvolnum"> <xsl:value-of select="refmeta/manvolnum[1]"/> </xsl:when> <xsl:when test=".//funcsynopsis">3</xsl:when> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="name" select="refnamediv/refname[1]"/> <!-- standard man page width is 64 chars; 6 chars needed for the two (x) volume numbers, and 2 spaces, leaves 56 --> <xsl:variable name="twidth" select="(56 - string-length(refmeta/refentrytitle)) div 2"/> <xsl:variable name="reftitle" select="substring(refmeta/refentrytitle, 1, $twidth)"/> <xsl:variable name="title"> <xsl:choose> <xsl:when test="refentryinfo/title"> <xsl:value-of select="refentryinfo/title"/> </xsl:when> <xsl:when test="../referenceinfo/title"> <xsl:value-of select="../referenceinfo/title"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="date"> <xsl:choose> <xsl:when test="refentryinfo/date"> <xsl:value-of select="refentryinfo/date"/> </xsl:when> <xsl:when test="../referenceinfo/date"> <xsl:value-of select="../referenceinfo/date"/> </xsl:when> </xsl:choose> </xsl:variable> <xsl:variable name="productname"> <xsl:choose> <xsl:when test="refentryinfo/productname"> <xsl:value-of select="refentryinfo/productname"/> </xsl:when> <xsl:when test="../referenceinfo/productname"> <xsl:value-of select="../referenceinfo/productname"/> </xsl:when> </xsl:choose> </xsl:variable> <!-- replace spaces with underscores in the filename --> <xsl:variable name="filename"> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="concat(normalize-space ($name), '.', $section)"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'_'"/> </xsl:call-template> </xsl:variable> <xsl:call-template name="write.text.chunk"> <xsl:with-param name="filename" select="$filename"/> <xsl:with-param name="content"> <xsl:text>.\"Generated by db2man.xsl. Don't modify this, modify the source. .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "</xsl:text> <xsl:value-of select="translate($reftitle,'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> <xsl:text>" </xsl:text> <xsl:value-of select="$section"/> <xsl:text> "</xsl:text> <xsl:value-of select="normalize-space($date)"/> <xsl:text>" "</xsl:text> <xsl:value-of select="normalize-space($productname)"/> <xsl:text>" "</xsl:text> <xsl:value-of select="$title"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> <xsl:text> </xsl:text> <!-- Author section --> <xsl:choose> <xsl:when test="refentryinfo//author"> <xsl:apply-templates select="refentryinfo" mode="authorsect"/> </xsl:when> <xsl:when test="/book/bookinfo//author"> <xsl:apply-templates select="/book/bookinfo" mode="authorsect"/> </xsl:when> <xsl:when test="/article/articleinfo//author"> <xsl:apply-templates select="/article/articleinfo" mode="authorsect"/> </xsl:when> </xsl:choose> </xsl:with-param> </xsl:call-template> <!-- Now generate stub include pages for every page documented in this refentry (except the page itself) --> <xsl:for-each select="refnamediv/refname"> <xsl:if test=". != $name"> <xsl:call-template name="write.text.chunk"> <xsl:with-param name="filename" select="concat(normalize-space(.), '.', $section)"/> <xsl:with-param name="content" select="concat('.so man', $section, '/', $name, '.', $section, ' ')"/> </xsl:call-template> </xsl:if> </xsl:for-each> </xsl:template> <xsl:template match="refmeta"></xsl:template> <xsl:template match="title"></xsl:template> <xsl:template match="abstract"></xsl:template> <xsl:template match="articleinfo|bookinfo|refentryinfo" mode="authorsect"> <xsl:text>.SH AUTHOR</xsl:text> <xsl:if test="count(.//author)>1"> <xsl:text>S</xsl:text> </xsl:if> <xsl:text> </xsl:text> <xsl:for-each select=".//author"> <xsl:if test="position() > 1"> <xsl:text>, </xsl:text> </xsl:if> <xsl:variable name="author"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($author)"/> </xsl:for-each> <xsl:text>. </xsl:text> <xsl:if test=".//editor"> <xsl:text>.br Man page edited by </xsl:text> <xsl:apply-templates select=".//editor"/> <xsl:text>. </xsl:text> </xsl:if> </xsl:template> <xsl:template match="author|editor"> <xsl:call-template name="person.name"/> <xsl:apply-templates select="./affiliation/address/email" /> </xsl:template> <xsl:template match="copyright"> <xsl:text>Copyright \(co </xsl:text> <xsl:apply-templates select="./year" /> <xsl:text> .Sp </xsl:text> </xsl:template> <xsl:template match="email"> <xsl:text> <</xsl:text> <xsl:apply-templates/> <xsl:text>></xsl:text> </xsl:template> <xsl:template match="refnamediv"> <xsl:text>.SH NAME </xsl:text> <xsl:for-each select="refname"> <xsl:if test="position()>1"> <xsl:text>, </xsl:text> </xsl:if> <xsl:value-of select="."/> </xsl:for-each> <xsl:text> \- </xsl:text> <xsl:value-of select="normalize-space (refpurpose)"/> </xsl:template> <xsl:template match="refentry/refentryinfo"></xsl:template> <xsl:template match="informalexample|screen"> <xsl:text> .IP </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="filename|replaceable|varname"> <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="option|userinput|envar|errorcode|constant|type"> <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="quote"> <xsl:text>``</xsl:text> <xsl:apply-templates/> <xsl:text>''</xsl:text> </xsl:template> <xsl:template match="programlisting|literallayout"> <xsl:text> .nf </xsl:text> <xsl:apply-templates/> <xsl:text> .fi </xsl:text> </xsl:template> <xsl:template match="optional"> <xsl:value-of select="$arg.choice.opt.open.str"/> <xsl:apply-templates/> <xsl:value-of select="$arg.choice.opt.close.str"/> </xsl:template> <xsl:template name="do-citerefentry"> <xsl:param name="refentrytitle" select="''"/> <xsl:param name="manvolnum" select="''"/> <xsl:apply-templates mode="bold" select="$refentrytitle"/> <xsl:text>(</xsl:text> <xsl:value-of select="$manvolnum"/> <xsl:text>)</xsl:text> </xsl:template> <xsl:template match="citerefentry"> <xsl:call-template name="do-citerefentry"> <xsl:with-param name="refentrytitle" select="refentrytitle"/> <xsl:with-param name="manvolnum" select="manvolnum"/> </xsl:call-template> </xsl:template> <xsl:template match="ulink"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:variable name="url" select="@url"/> <xsl:choose> <xsl:when test="$url=$content or $content=''"> <xsl:text>\fI</xsl:text> <xsl:value-of select="$url"/> <xsl:text>\fR</xsl:text> </xsl:when> <xsl:otherwise> <xsl:value-of select="$content"/> <xsl:text>: \fI</xsl:text> <xsl:value-of select="$url"/> <xsl:text>\fR</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- Translate some entities to textual equivalents. --> <xsl:template name="replace-string"> <xsl:param name="content" select="''"/> <xsl:param name="replace" select="''"/> <xsl:param name="with" select="''"/> <xsl:choose> <xsl:when test="not(contains($content,$replace))"> <xsl:value-of select="$content"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring-before($content,$replace)"/> <xsl:value-of select="$with"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="substring-after($content,$replace)"/> <xsl:with-param name="replace" select="$replace"/> <xsl:with-param name="with" select="$with"/> </xsl:call-template> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="replace-dash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'-'"/> <xsl:with-param name="with" select="'\-'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-ndash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'–'"/> <xsl:with-param name="with" select="'-'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-mdash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'—'"/> <xsl:with-param name="with" select="'--'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-hellip"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'…'"/> <xsl:with-param name="with" select="'...'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-setmn"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'∖'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-minus"> <xsl:param name="content" select="''"/> <xsl:value-of select="translate($content,'−','-')"/> </xsl:template> <xsl:template name="replace-backslash"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'\'"/> <xsl:with-param name="with" select="'\\'"/> </xsl:call-template> </xsl:template> <!-- if a period character is output at the beginning of a line it will be interpreted as a groff macro, so prefix all periods with "\&", a zero-width space. --> <xsl:template name="replace-period"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="'.'"/> <xsl:with-param name="with" select="'\&.'"/> </xsl:call-template> </xsl:template> <xsl:template name="replace-entities"> <xsl:param name="content" select="''"/> <xsl:call-template name="replace-hellip"> <xsl:with-param name="content"> <xsl:call-template name="replace-minus"> <xsl:with-param name="content"> <xsl:call-template name="replace-mdash"> <xsl:with-param name="content"> <xsl:call-template name="replace-ndash"> <xsl:with-param name="content"> <xsl:call-template name="replace-dash"> <xsl:with-param name="content"> <xsl:call-template name="replace-setmn"> <xsl:with-param name="content"> <xsl:call-template name="replace-period"> <xsl:with-param name="content"> <xsl:call-template name="replace-backslash"> <xsl:with-param name="content" select="$content"/> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template match="text()"> <xsl:call-template name="replace-entities"> <xsl:with-param name="content"> <xsl:value-of select="."/> </xsl:with-param> </xsl:call-template> </xsl:template> <xsl:template match="/"> <xsl:choose> <xsl:when test="//refentry"> <xsl:apply-templates select="//refentry"/> </xsl:when> <xsl:otherwise> <xsl:message>No refentry elements!</xsl:message> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> --- NEW FILE: lists.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="para[ancestor::listitem or ancestor::step]| simpara[ancestor::listitem or ancestor::step]| remark[ancestor::listitem or ancestor::step]"> <xsl:for-each select="node()"> <xsl:choose> <xsl:when test="self::literallayout|self::screen|self::programlisting| self::itemizedlist|self::orderedlist|self::variablelist"> <xsl:text> </xsl:text> <xsl:apply-templates select="."/> </xsl:when> <xsl:when test="self::text()"> <xsl:if test="starts-with(translate(.,' ',' '), ' ') and preceding-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> <xsl:if test="translate(substring(., string-length(.), 1),' ',' ') = ' ' and following-sibling::node()[name(.)!='']"> <xsl:text> </xsl:text> </xsl:if> </xsl:when> <xsl:otherwise> <xsl:variable name="content"> <xsl:apply-templates select="."/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> <xsl:text> </xsl:text> <xsl:if test="following-sibling::para or following-sibling::simpara or following-sibling::remark"> <!-- Make sure multiple paragraphs within a list item don't --> <!-- merge together. --> <xsl:text> </xsl:text> </xsl:if> </xsl:template> <xsl:template match="varlistentry|glossentry"> <xsl:text> .TP </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="variablelist[ancestor::listitem or ancestor::step]| glosslist[ancestor::listitem or ancestor::step]"> <xsl:text> .RS </xsl:text> <xsl:apply-templates/> <xsl:text> .RE </xsl:text> </xsl:template> <xsl:template match="varlistentry/term|glossterm"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> <xsl:text>, </xsl:text> </xsl:template> <xsl:template match="varlistentry/term[position()=last()]|glossterm[position()=last()]" priority="2"> <xsl:variable name="content"> <xsl:apply-templates/> </xsl:variable> <xsl:value-of select="normalize-space($content)"/> </xsl:template> <xsl:template match="varlistentry/listitem|glossdef"> <xsl:text> </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="itemizedlist/listitem"> <xsl:text>\(bu </xsl:text> <xsl:apply-templates/> <xsl:if test="position()!=last()"> <xsl:text>.TP </xsl:text> </xsl:if> </xsl:template> <xsl:template match="orderedlist/listitem|procedure/step"> <xsl:number format="1."/> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:if test="position()!=last()"> <xsl:text>.TP </xsl:text> </xsl:if> </xsl:template> <xsl:template match="itemizedlist|orderedlist|procedure"> <xsl:text> .TP 3 </xsl:text> <xsl:apply-templates/> <xsl:text>.LP </xsl:text> </xsl:template> <xsl:template match="itemizedlist[ancestor::listitem or ancestor::step]| orderedlist[ancestor::listitem or ancestor::step]| procedure[ancestor::listitem or ancestor::step]"> <xsl:text> .RS .TP 3 </xsl:text> <xsl:apply-templates/> <xsl:text>.LP .RE </xsl:text> </xsl:template> </xsl:stylesheet> --- NEW FILE: sect23.xsl --- <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="refsect2"> <xsl:text> .Sh "</xsl:text> <xsl:value-of select="substring-before(title[1],' ')"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsect2/title"></xsl:template> <xsl:template match="refsect2/programlisting"></xsl:template> <xsl:template match="funcsynopsis"> <xsl:text> .BI "</xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="funcsynopsis/funcprototype"> <xsl:apply-templates/> <xsl:text> ); .br </xsl:text> </xsl:template> <xsl:template match="funcsynopsis/funcprototype/funcdef"> <xsl:apply-templates/> <xsl:value-of select="function"/> <xsl:text> (</xsl:text> </xsl:template> <xsl:template match="funcsynopsis/funcprototype/funcdef/function"></xsl:template> <xsl:template match="funcsynopsis/funcprototype/paramdef"> <xsl:apply-templates/> <xsl:text>" </xsl:text> <xsl:value-of select="parameter"/> <xsl:choose> <xsl:when test="following-sibling::paramdef"> <xsl:text> ", </xsl:text> </xsl:when> </xsl:choose> </xsl:template> <xsl:template match="funcsynopsis/funcprototype/paramdef/parameter"></xsl:template> <xsl:template match="refsect2/informaltable/tgroup/tbody/row"> <xsl:text>.Ip "\(bu \s-1</xsl:text> <xsl:value-of select="entry[1]/parameter[1]"/> <xsl:text>\s0 \- </xsl:text> <xsl:value-of select="normalize-space(entry[2])"/> <xsl:text>" </xsl:text> </xsl:template> <xsl:template match="refsect1"> <xsl:text> .SH "</xsl:text> <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsynopsisdiv"> <xsl:text> .SH "</xsl:text> <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refsynopsisdiv/title"></xsl:template> <xsl:template match="refsect1/title"></xsl:template> <xsl:template match="para"> <xsl:text>.PP </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="*"><xsl:apply-templates/></xsl:template> <xsl:template match="refentry"> <xsl:text>." DO NOT MODIFY THIS FILE! .de Sh \" Subsection .br .if t .Sp .ne 5 .PP \fB\\$1\fR .PP .. .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Ip \" List item .br .ie \\n(.$>=3 .ne \\$3 .el .ne 3 .IP "\\$1" \\$2 .. .TH "</xsl:text> <xsl:value-of select="refmeta/refentrytitle[1]"/> <xsl:text>" </xsl:text> <xsl:value-of select="refmeta/manvolnum[1]"/> <xsl:text> "</xsl:text> <xsl:value-of select="@revision"/> <xsl:text>" </xsl:text> <xsl:apply-templates/> </xsl:template> <xsl:template match="refmeta"></xsl:template> <xsl:template match="refnamediv"> <xsl:text>.SH NAME </xsl:text> <xsl:value-of select="refname"/> <xsl:text> \- </xsl:text> <xsl:value-of select="refpurpose"/> </xsl:template> <xsl:template match="refentry/refentrytitle"></xsl:template> <xsl:template match="article/articleinfo/*"></xsl:template> <xsl:template match="term/option"> <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="varlistentry"> <xsl:text> .TP </xsl:text> <xsl:apply-templates select="./term"/> <xsl:apply-templates select="./listitem"/> </xsl:template> <xsl:template match="varlistentry/listitem/para"> <xsl:apply-templates/> </xsl:template> <xsl:template match="filename"> <xsl:text> .FN </xsl:text><xsl:apply-templates/> </xsl:template> <xsl:template match="userinput"> <xsl:text> .IP .B </xsl:text><xsl:apply-templates/> </xsl:template> <xsl:template match="envar"> <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="filename"> <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text> </xsl:template> </xsl:stylesheet> --- NEW FILE: synop.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="synopfragment"> <xsl:text> .PP </xsl:text> <xsl:apply-templates/> </xsl:template> <!-- there's a bug were an <arg> that's not inside a <group> isn't made bold --> <xsl:template match="group|arg"> <xsl:variable name="choice" select="@choice"/> <xsl:variable name="rep" select="@rep"/> <xsl:variable name="sepchar"> <xsl:choose> <xsl:when test="ancestor-or-self::*/@sepchar"> <xsl:value-of select="ancestor-or-self::*/@sepchar"/> </xsl:when> <xsl:otherwise> <xsl:text> </xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:if test="position()>1"><xsl:value-of select="$sepchar"/></xsl:if> <xsl:choose> <xsl:when test="$choice='plain'"> <!-- do nothing --> </xsl:when> <xsl:when test="$choice='req'"> <xsl:value-of select="$arg.choice.req.open.str"/> </xsl:when> <xsl:when test="$choice='opt'"> <xsl:value-of select="$arg.choice.opt.open.str"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$arg.choice.def.open.str"/> </xsl:otherwise> </xsl:choose> <xsl:variable name="arg"> <xsl:apply-templates/> </xsl:variable> <xsl:choose> <xsl:when test="local-name(.) = 'arg' and not(ancestor::arg)"> <!-- Prevent breaking up an argument by wrapping it --> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="normalize-space($arg)"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'\ '"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space($arg)"/> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$rep='repeat'"> <xsl:value-of select="$arg.rep.repeat.str"/> </xsl:when> <xsl:when test="$rep='norepeat'"> <xsl:value-of select="$arg.rep.norepeat.str"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$arg.rep.def.str"/> </xsl:otherwise> </xsl:choose> <xsl:choose> <xsl:when test="$choice='plain'"> <xsl:if test='arg'> <xsl:value-of select="$arg.choice.plain.close.str"/> </xsl:if> </xsl:when> <xsl:when test="$choice='req'"> <xsl:value-of select="$arg.choice.req.close.str"/> </xsl:when> <xsl:when test="$choice='opt'"> <xsl:value-of select="$arg.choice.opt.close.str"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$arg.choice.def.close.str"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="group/arg"> <xsl:if test="position()>1"> <xsl:value-of select="$arg.or.sep"/> </xsl:if> <!-- Don't use the 'bold' named template here since there may be --> <!-- child elements that require different markup (such as --> <!-- <replaceable>). --> <xsl:text>\fB</xsl:text> <xsl:variable name="arg"> <xsl:apply-templates/> </xsl:variable> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="normalize-space($arg)"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'\ '"/> </xsl:call-template> <xsl:text>\fR</xsl:text> </xsl:template> <xsl:template match="command"> <xsl:apply-templates mode="bold" select="."/> </xsl:template> <xsl:template match="function[not(ancestor::command)]"> <xsl:apply-templates mode="bold" select="."/> </xsl:template> <xsl:template match="parameter[not(ancestor::command)]"> <xsl:apply-templates mode="italic" select="."/> </xsl:template> <xsl:template match="sbr" /> <xsl:template match="cmdsynopsis"> <xsl:text>.ad l .hy 0 </xsl:text> <xsl:text>.HP </xsl:text> <xsl:value-of select="string-length (normalize-space (command)) + 1"/> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:text> .ad .hy </xsl:text> </xsl:template> <xsl:template match="synopsis"> <xsl:text> .nf </xsl:text> <xsl:apply-templates/> <xsl:text> .fi </xsl:text> </xsl:template> <xsl:template match="void"> <xsl:text>void</xsl:text> </xsl:template> <xsl:template match="varargs"> <xsl:text>...</xsl:text> </xsl:template> <xsl:template match="funcsynopsisinfo"> <xsl:text> </xsl:text> <xsl:apply-templates/> <xsl:text> .sp </xsl:text> </xsl:template> <!-- disable hyphenation, and use left-aligned filling for the duration of the synopsis, so that line breaks only occur between separate paramdefs. --> <xsl:template match="funcsynopsis"> <xsl:text>.ad l .hy 0 </xsl:text> <xsl:apply-templates/> <xsl:text>.ad .hy </xsl:text> </xsl:template> <!-- TODO: Handle K&R-style parameter lists Comment that used to go with the paramdef template, which is now obsolete and thus deleted --> <!-- replaces all spaces within the funcdef/paramdef with non-breaking spaces --> <xsl:template match="paramdef|funcdef"> <xsl:variable name="rcontent"> <xsl:apply-templates select="*|./*|text()"/> </xsl:variable> <xsl:variable name="content"> <xsl:value-of select="normalize-space($rcontent)"/> </xsl:variable> <xsl:call-template name="replace-string"> <xsl:with-param name="content" select="$content"/> <xsl:with-param name="replace" select="' '"/> <xsl:with-param name="with" select="'\ '"/> </xsl:call-template> <xsl:if test="local-name(.) = 'paramdef' and (following-sibling::paramdef or following-sibling::varargs)"> <xsl:text>, </xsl:text> </xsl:if> </xsl:template> <xsl:template match="funcprototype"> <xsl:variable name="funcprototype"> <xsl:apply-templates select="funcdef"/> </xsl:variable> <xsl:text>.HP </xsl:text> <xsl:value-of select="string-length (normalize-space ($funcprototype)) - 5"/> <xsl:text> </xsl:text> <xsl:value-of select="normalize-space ($funcprototype)"/> <xsl:text>\ (</xsl:text> <xsl:apply-templates select="void|paramdef|varargs"/> <xsl:text>); </xsl:text> </xsl:template> </xsl:stylesheet> --- NEW FILE: xref.xsl --- <?xml version='1.0'?> <!-- vim:set sts=2 shiftwidth=2 syntax=sgml: --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> <xsl:template match="xref"> <xsl:variable name="targets" select="key('id', @linkend)"/> <xsl:variable name="target" select="$targets[1]"/> <xsl:variable name="type" select="local-name($target)"/> <xsl:choose> <xsl:when test="$type=''"> <xsl:message> <xsl:text>xref to nonexistent id </xsl:text> <xsl:value-of select="@linkend"/> </xsl:message> </xsl:when> <xsl:when test="$type='refentry'"> <xsl:call-template name="do-citerefentry"> <xsl:with-param name="refentrytitle" select="$target/refmeta/refentrytitle[1]"/> <xsl:with-param name="manvolnum" select="$target/refmeta/manvolnum"/> </xsl:call-template> </xsl:when> <xsl:when test="$type='refname'"> <xsl:call-template name="do-citerefentry"> <xsl:with-param name="refentrytitle" select="$target"/> <xsl:with-param name="manvolnum" select="$target/../../refmeta/manvolnum"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:text>[xref to </xsl:text> <xsl:value-of select="$type"/> <xsl:text>]</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet> |
From: <smi...@us...> - 2004-01-02 00:59:58
|
Update of /cvsroot/devil-linux/build/docs/documentation/stylesheets/lib In directory sc8-pr-cvs1:/tmp/cvs-serv17796/stylesheets/lib Added Files: ChangeLog lib.xml lib.xsl lib.xweb Log Message: so that's hopefully it, with the new stylesheets |