|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How is this part of the XSLT specification to be interpr
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








