From: Norman Walsh Date: Thu, 19 Sep 2002 22:05:34 +0000 (+0000) Subject: Stylesheets to allow sgmltag and parameter to link automatically to documentation X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c921a9c4e8f1fed081808c5e563a6ff367f1c1a8;p=docbook-dsssl Stylesheets to allow sgmltag and parameter to link automatically to documentation --- diff --git a/xsl/docsrc/.cvsignore b/xsl/docsrc/.cvsignore new file mode 100644 index 000000000..79cc3a4af --- /dev/null +++ b/xsl/docsrc/.cvsignore @@ -0,0 +1 @@ +xsl-params.xsl diff --git a/xsl/docsrc/Makefile b/xsl/docsrc/Makefile index 04d8ab8aa..b4e7e3f6d 100644 --- a/xsl/docsrc/Makefile +++ b/xsl/docsrc/Makefile @@ -1,6 +1,6 @@ DIRS=common html fo template tools -all: +all: xsl-params.xsl for i in $(DIRS) __bogus__; do \ if [ $$i != __bogus__ ] ; then \ echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \ @@ -13,3 +13,6 @@ clean: echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i clean; \ fi \ done + +xsl-params.xsl: make-xsl-params.pl + perl $< > $@ diff --git a/xsl/docsrc/doc-link-docbook.xsl b/xsl/docsrc/doc-link-docbook.xsl new file mode 100644 index 000000000..ec26c5953 --- /dev/null +++ b/xsl/docsrc/doc-link-docbook.xsl @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/xsl/docsrc/docbook-elements.xsl b/xsl/docsrc/docbook-elements.xsl new file mode 100644 index 000000000..7dfc3d5c7 --- /dev/null +++ b/xsl/docsrc/docbook-elements.xsl @@ -0,0 +1,419 @@ + + + + + + abbrev + abstract + accel + ackno + acronym + action + address + affiliation + alt + anchor + answer + appendix + appendixinfo + application + area + areaset + areaspec + arg + article + articleinfo + artpagenums + attribution + audiodata + audioobject + author + authorblurb + authorgroup + authorinitials + beginpage + bibliocoverage + bibliodiv + biblioentry + bibliography + bibliographyinfo + biblioid + bibliomisc + bibliomixed + bibliomset + bibliorelation + biblioset + bibliosource + blockinfo + blockquote + book + bookinfo + bridgehead + callout + calloutlist + caption + caution + chapter + chapterinfo + citation + citebiblioid + citerefentry + citetitle + city + classname + classsynopsis + classsynopsisinfo + cmdsynopsis + co + collab + collabname + colophon + colspec + command + computeroutput + confdates + confgroup + confnum + confsponsor + conftitle + constant + constraint + constraintdef + constructorsynopsis + contractnum + contractsponsor + contrib + copyright + coref + corpauthor + corpname + country + database + date + dedication + destructorsynopsis + edition + editor + email + emphasis + entry + entrytbl + envar + epigraph + equation + errorcode + errorname + errortext + errortype + example + exceptionname + fax + fieldsynopsis + figure + filename + firstname + firstterm + footnote + footnoteref + foreignphrase + formalpara + funcdef + funcparams + funcprototype + funcsynopsis + funcsynopsisinfo + function + glossary + glossaryinfo + glossdef + glossdiv + glossentry + glosslist + glosssee + glossseealso + glossterm + graphic + graphicco + group + guibutton + guiicon + guilabel + guimenu + guimenuitem + guisubmenu + hardware + highlights + holder + honorific + imagedata + imageobject + imageobjectco + important + index + indexdiv + indexentry + indexinfo + indexterm + informalequation + informalexample + informalfigure + informaltable + initializer + inlineequation + inlinegraphic + inlinemediaobject + interface + interfacename + invpartnumber + isbn + issn + issuenum + itemizedlist + itermset + jobtitle + keycap + keycode + keycombo + keysym + keyword + keywordset + label + legalnotice + lhs + lineage + lineannotation + link + listitem + literal + literallayout + lot + lotentry + manvolnum + markup + medialabel + mediaobject + mediaobjectco + member + menuchoice + methodname + methodparam + methodsynopsis + modespec + modifier + mousebutton + msg + msgaud + msgentry + msgexplan + msginfo + msglevel + msgmain + msgorig + msgrel + msgset + msgsub + msgtext + nonterminal + note + objectinfo + olink + ooclass + ooexception + oointerface + option + optional + orderedlist + orgdiv + orgname + otheraddr + othercredit + othername + pagenums + para + paramdef + parameter + part + partinfo + partintro + personblurb + personname + phone + phrase + pob + postcode + preface + prefaceinfo + primary + primaryie + printhistory + procedure + production + productionrecap + productionset + productname + productnumber + programlisting + programlistingco + prompt + property + pubdate + publisher + publishername + pubsnumber + qandadiv + qandaentry + qandaset + question + quote + refclass + refdescriptor + refentry + refentryinfo + refentrytitle + reference + referenceinfo + refmeta + refmiscinfo + refname + refnamediv + refpurpose + refsect1 + refsect1info + refsect2 + refsect2info + refsect3 + refsect3info + refsection + refsectioninfo + refsynopsisdiv + refsynopsisdivinfo + releaseinfo + remark + replaceable + returnvalue + revdescription + revhistory + revision + revnumber + revremark + rhs + row + sbr + screen + screenco + screeninfo + screenshot + secondary + secondaryie + sect1 + sect1info + sect2 + sect2info + sect3 + sect3info + sect4 + sect4info + sect5 + sect5info + section + sectioninfo + see + seealso + seealsoie + seeie + seg + seglistitem + segmentedlist + segtitle + seriesvolnums + set + setindex + setindexinfo + setinfo + sgmltag + shortaffil + shortcut + sidebar + sidebarinfo + simpara + simplelist + simplemsgentry + simplesect + spanspec + state + step + street + structfield + structname + subject + subjectset + subjectterm + subscript + substeps + subtitle + superscript + surname + symbol + synopfragment + synopfragmentref + synopsis + systemitem + table + tbody + term + tertiary + tertiaryie + textdata + textobject + tfoot + tgroup + thead + tip + title + titleabbrev + toc + tocback + tocchap + tocentry + tocfront + toclevel1 + toclevel2 + toclevel3 + toclevel4 + toclevel5 + tocpart + token + trademark + type + ulink + userinput + varargs + variablelist + varlistentry + varname + videodata + videoobject + void + volumenum + warning + wordasword + xref + year + + + + + + + + + + 1 + 0 + + + + diff --git a/xsl/docsrc/make-xsl-params.pl b/xsl/docsrc/make-xsl-params.pl new file mode 100755 index 000000000..467ee5f8a --- /dev/null +++ b/xsl/docsrc/make-xsl-params.pl @@ -0,0 +1,69 @@ +#!/usr/bin/perl -- # -*- Perl -*- + +# Must be run from the "docssrc" directory + +print < + + + + + +EOF1 + +open (F, "../html/param.xsl"); +read (F, $_, -s "../html/param.xsl"); +close (F); +foreach my $param (/$1\n", +} + +print < + + + + +EOF2 + +open (F, "../fo/param.xsl"); +read (F, $_, -s "../fo/param.xsl"); +close (F); +foreach my $param (/$1\n", +} + +print < + + + + + + + + + + + 1 + 0 + + + + + + + + 1 + 0 + + + + +EOF3 diff --git a/xsl/docsrc/tdg-link.xsl b/xsl/docsrc/tdg-link.xsl new file mode 100644 index 000000000..7bd55a73a --- /dev/null +++ b/xsl/docsrc/tdg-link.xsl @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/docsrc/xsl-param-link.xsl b/xsl/docsrc/xsl-param-link.xsl new file mode 100644 index 000000000..f51832061 --- /dev/null +++ b/xsl/docsrc/xsl-param-link.xsl @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +