Subject: RE: How is this part of the XSLT specification to be interpreted? From: Jeni Tennison <Jeni.Tennison@xxxxxxxxxxxxxxxx> Date: Tue, 20 Jun 2000 17:45:16 +0100 |
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@xxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: How is this part of the XSLT sp, Thorbjørn Ravn Ander | Thread | RE: How is this part of the XSLT sp, Kay Michael |
Re: How to generate char ",, Dan Morrison | Date | Space at start of result., Bruce McGuire |
Month |