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

AW: commenting and documenting XSLT (small survey)

Subject: AW: commenting and documenting XSLT (small survey)
From: <christof.hoeke@xxxxxxx>
Date: Thu, 8 Jul 2004 12:49:02 +0200
commenting xsl
> Von: David Carlisle [mailto:davidc@xxxxxxxxx]
> Betreff: Re:  commenting and documenting XSLT (small survey)
>
> Both your suggested solutions used comments <!-- -->  but why do that?
> XSLT allows (at the top level) any elements from any foreign namespace
> so you can, for example, put xhtml comments there directly.
> It's much easier to control.validate teh documentation if it is in the
> XML element structure rather than all justhidden in a comment.
>
> David
>

true, but comments in general (in any language) are not meant to be processed
apart from documentation purposes and so at least in my opinion are reasonable
to be used to comment code as they are used in other languages too.
also otherwise XML comments are totally superfluous, are they not?

another reason to use <!-- --> comments is that in almost all editors they are
highlighted (or better lowlighted...) so are much easier to recognize and
differentiate from actual content.
using elements in another namespace (even a special doc namespace) would
somehow pollute the content i think.

i guess an element as <annotation> in XML Schema is there for a purpose but
probably not to make the Schema better maintainable which I think the main
purpose comments in general are for.

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.