[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Self documentation, my crude stab in that direction

Subject: Self documentation, my crude stab in that direction
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: 07 Jul 2000 13:04:39 -0400
xsl column width
[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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.