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

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

Subject: Re: AW: commenting and documenting XSLT (small survey)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 8 Jul 2004 12:33:54 +0100
xsl commenting
> 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

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.