Subject: Re: Re: xsl/xslt coding standard
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 08:31:37 +0100
|
Hi Conal,
> What about just using custom attributes rather than comment
> elements? It means your documentation is not arbitrarily structured,
> but it can at least have a structure that matches the stylesheet
> itself, without interfering too much with the output tree.
That's a reasonable idea, though you can't use it to add documentation
to literal result elements (without the documentation being added to
the element in the result).
I think I'd still find the ability to structure my comments useful,
though, mainly for indicating the meaning of particular words. For
example:
<xsl:for-each select="blah-child[@type="$blah-type]">
<xsl:doc>
iterate over the <el>blah-child</el> whose <at>type</at> is the
same as the <param>blah-type</param>
</xsl:doc>
...
</xsl:for-each>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Re: xsl/xslt coding standard, (continued)
- DPawson - Thu, 15 Aug 2002 09:22:43 -0400 (EDT)
- Yates, Danny (ANTS) - Thu, 15 Aug 2002 09:44:19 -0400 (EDT)
- Andrew Welch - Thu, 15 Aug 2002 10:14:53 -0400 (EDT)
- Conal Tuohy - Thu, 15 Aug 2002 19:31:22 -0400 (EDT)
- Jeni Tennison - Fri, 16 Aug 2002 03:30:52 -0400 (EDT) <=
- "Braumüller, Hans" - Fri, 16 Aug 2002 05:26:19 -0400 (EDT)
- "Braumüller, Hans" - Fri, 16 Aug 2002 08:19:02 -0400 (EDT)
- Jeni Tennison - Fri, 16 Aug 2002 08:54:48 -0400 (EDT)
|
|