[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

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
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


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.