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

AW: AW: commenting and documenting XSLT (small survey)

Subject: AW: AW: commenting and documenting XSLT (small survey)
From: <christof.hoeke@xxxxxxx>
Date: Thu, 8 Jul 2004 13:47:53 +0200
commenting xsl
> > also otherwise XML comments are totally superfluous, are they not?
>
> No. xml comments have purposes, they for example allow you to
> comment out
> bad (non well formed) fragments until you have time to fix
> them (or just
> to record what was there before you removed it) also they are good for
> unstructured, or non-xml structured small comments (eg CVS
> identification lines) but your example had deeply structured comments,
> and for that XML is much better suited than xml-comments.
>
> XSLT was designed to allow you to mix xslt elements and xhtml elements
> freely within the stylesheet. the xhtml is ignored if you run
> the code,
> and its trivial to write a small stylesheet that swaps things
> around and
> produces well structered xhtml documentation, based on teh xhtml
> fragments from the stylesheet and some verbatim or "tree view" of the
> code fragments.
> see for example some examples here:
>
> http://www.dpawson.co.uk/xsl/sect2/documentation.html
>
> David
>

i do acknowledge the method using elements in another namespace for
documentation but the problem is the same as using Javadoc style comments:
- It is quite an effort to write
- very difficult to read (not meant to be readable at a glance but comments
should be IMHO)

so I guess not a lot of people actually write documentation that way as it is
quite a work to do. Also it does not really help while working in the
stylesheet itself. using reStructuredText in XML comments does not have this
problem. i agree that one should not write deeply structured comments this
way, external documentation in another file might be better for that anyway.
but for the purpose of the xsldoc tool that is exactly what gives a good
overview of an xslt package.

chris

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.