This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Attributes, modes and templates
- To: xsl-list at mulberrytech dot com
- Subject: Re: Attributes, modes and templates
- From: Wendell Piez <wapiez at mulberrytech dot com>
- Date: Fri, 28 Apr 2000 11:50:15 +0100
- References: <Wendell Piez's message of "Thu, 27 Apr 2000 11:46:44 +0100"><3.0.6.32.20000427114644.00942100@tribalogic.com>
- Reply-To: xsl-list at mulberrytech dot com
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@mulberrytech.com
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