[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

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
larry g fitzpatrick
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

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.