[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Q: modes and implicit templates and XT-19990514
At 99/06/18 18:01 -0400, Larry Fitzpatrick wrote: >The basic issue is do modes apply to the implicit templates (in this example, >the one for text()). ... >However, test2.xsl, has no template defined for moded text. The the following >statement: > <xsl:apply-templates mode="c" select="text()"/> >selects the implicit, unmoded, text rule. This is not what I would have expected. ... >The spec says: > "If an xsl:apply-templates element has a mode attribute, then >it applies only to those template rules from xsl:template elements >that have a mode attribute with the same value" The very next paragraph (both from section 7.6 Modes) reads: "If there is no matching template, then the built-in template rules are applied, even if a mode attribute was specified in xsl:apply-templates." >This doesn't seem to be true for this implicit template. >Is the spec or xt correct Both are in sync. ....... Ken -- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Website: XSL/XML/DSSSL/SGML services, training, libraries, products. Publications: Introduction to XSLT (3rd Edition) ISBN 1-894049-00-4 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
|