Subject: Re: Q: modes and implicit templates and XT-19990514 From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 18 Jun 1999 19:05:56 -0700 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Q: modes and implicit templates and, Larry Fitzpatrick | Thread | Re: Q: modes and implicit templates, Larry Fitzpatrick |
Re: Extracting element names for ou, Steve Muench | Date | Re: Extracting element names for ou, G. Ken Holman |
Month |