This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How is this part of the XSLT specification to be interpreted?
- To: Thorbjørn Ravn Andersen <TRA at stibo dot dk>
- Subject: RE: How is this part of the XSLT specification to be interpreted?
- From: Jeni Tennison <Jeni dot Tennison at epistemics dot co dot uk>
- Date: Tue, 20 Jun 2000 17:45:16 +0100
- Cc: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Reply-To: xsl-list at mulberrytech dot com
Thorbjørn,
I think you make a very good point about allowing documentation in XSLT
stylesheets, and particularly structured documentation within templates.
It might be that XSLT processors will start providing this as an extension
elements or attributes of some kind, or that it is included in XSLT 2.0
whenever that comes along. Thinking aloud, a possibility would be to have
the 'result-prefix' attribute of xsl:namespace-alias take a special value
('#ignore') for elements that should not be included in the output.
At the moment, though, you could take advantage of the fact that top-level
elements that are not within the XSLT namespace are ignored. Given your
example, you can currently legally do:
<doc:test>Hallo</doc:test>
<xsl:template match="TOC">
<rowset>
<xsl:apply-templates/>
</rowset>
</xsl:template>
This will probably be sufficient for most small templates - it is the
larger ones that require more internal documentation.
I hope that helps,
Jeni
Dr Jeni Tennison
Epistemics Ltd, Strelley Hall, Nottingham, NG8 6PE
Telephone 0115 9061301 • Fax 0115 9061304 • Email
jeni.tennison@epistemics.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list