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