Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Self documentation, my crude stab in that direction

From: Norman Walsh <ndw@---------->
To:
Date: 7/7/2000 9:05:00 AM
[Apologies for coming to this discussion a bit late. My two cents
follows.]

One of the most significant failings (IMHO) of my DocBook DSSSL
Stylesheets is that they are poorly documented. One of my goals for my
XSL DocBook Stylesheets is that they be less poorly documented. To
that end, I want to combine documentation with the stylesheets in a
way roughly analagous to the JavaDoc system that seems to work fairly
well.

My crude stab in that direction is the following. For each
template/variable/etc., I have an element in the doc: namespace that
contains documentation for it. My goal (as yet only partially
achieved) is to write stylesheets that build (reference/API)
documentation from this system. (This system isn't meant to address
tutorial and end-user documentation.)

Here's a quick example, FWIW, you can see others in the stylesheets
themselves (nwalsh.com/docbook/xsl), particularly in the param.xsl
modules.

  <doc:template name="calc.column.width" xmlns="">
  <refpurpose>Calculate an XSL FO table column width specification from a
  CALS table column width specification.</refpurpose>

  <refdescription>
  <para>CALS expresses table column widths in the following basic
  forms:</para>
  <!-- ... -->
  </refdescription>

  <refparameter>
  <variablelist>
  <varlistentry><term>colwidth</term>
  <listitem>
  <para>The CALS column width specification.</para>
  </listitem>
  </varlistentry>
  </variablelist>
  </refparameter>

  <refreturn>
  <para>The XSL column width specification.</para>
  </refreturn>
  </doc:template>

This element documents the xsl:template named "calc.column.width".
(The content of the doc: elements is described in the jrefentry
DTD, http://nwalsh.com/docbook/jrefentry/.)

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@xxxxxxxxxxxx | Anything more than the truth would be too
XML Technology Center     | much.--Robert Frost
Sun Microsystems, Inc.    | 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent