[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Attributes, modes and templates

Subject: Re: Attributes, modes and templates
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 28 Apr 2000 11:50:15 +0100
Re: Attributes
Hi Alex,

You wrote:

>This is the nub of my problem, exactly: for all elements called in the
>mode (but not in the special element) I want the xsl templates in the
>_imported_ Norman Walsh's stylesheets to be called (i.e. the templates
>I didn't write!)

Ah! Now this will be a trick.

For this, I'd suggest you use the <xsl:apply-imports/> element (in the
spec, section 5.6). That allows you to override processing defined in the
current stylesheet, in favor of rules defined in imported templates.

In order to get your special node to process your way instead of Norman
Walsh's, you could import a second stylesheet (it could contain only that
template) ahead of his, so it would have a higher import precedence. (See
2.6.2 for import precedence.)

In this case, you wouldn't need to use modes at all, I imagine.

Since you can't write modes onto Norm's stylesheet, there is quite a
wrinkle to your problem. Sorry I misunderstood your requirement. I Hope
this helps--!

Wendell


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


 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.