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

Re: XSL - Documentation

Subject: Re: XSL - Documentation
From: James Fuller <james.fuller.2007@xxxxxxxxx>
Date: Wed, 13 May 2009 16:17:32 +0200
Re:  XSL - Documentation
On Wed, May 13, 2009 at 4:04 PM, Michael Kay <mike@xxxxxxxxxxxx> wrote:
>> If you pretended that the C function documented above was a
>> XSLT function and invented some simplified syntax on the fly
>> (as I'm about to do), you'd end up with something like:
>>
>> ------------------------------------------------------------
>> <x:doc xmlns:x="http://example.org/documentation">
>> $res::                  Result tree.
>> $fo_doc::               #FoDoc to which to write output.
>> $fo_tree::              Pointer to generated FO tree.
>> $area_tree::            Pointer to generated area tree.
>> $continue_after_error:: Whether to continue after a formatting error.
>> $debug_level::          What debugging output to generate.
>> $error::                Indication of any error that occurred.
>>
>> Generates FO and area trees from $res result tree.
>> </x:doc>
>> ------------------------------------------------------------
>>
>> which is a lot easier to write, read, and update than putting
>> DocBook or DITA into the stylesheet and is still sufficiently
>> structured that, with some XSLT munging this time, you can
>> get from there to DocBook or DITA and from thence to HTML or
>> to whatever.
>
> But do we want users to have to learn yet another markup language?
>
> It seems to me that the obvious place to document a function parameter is
an
> extension attribute on the xsl:param element:
>
> <xsl:param name="fo_tree" x:doc="Pointer to generated FO tree"/>

but placing this kind of stuff in an attribute means we might run into
I18N issues at some point ...

I think all successful code documentation systems (perldoc, javadoc,
etc) were a dsl so I have no probs with learning another very small
language.

cheers, Jim Fuller

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.