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

Re: match on attribute anywhere

Subject: Re: match on attribute anywhere
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 14 Feb 2002 15:47:51 -0500
xslt sort uniq attribute
That's all true, Trevor.

Possibly we don't think of this since xsl:apply-imports is rare enough we're not tuned into it as being effectively an inheritance mechanism (and useful as such).

On the other hand, maybe now we will be.

Yet it's typical of XSL-List that we've seen four decent solutions to this problem already today (conditional logic, modes, matching the attribute, and using xsl:apply-imports), and learned something while we were at it.

Cheers,
Wendell

At 03:03 PM 2/14/02, you wrote:
This is really a very old pattern but in a new context.  In
object-oriented languages it is common to write a class which inherits
from another, overrides a method (or two), do some new stuff, then
call the base version of the same method to do what the base class
does.

Which is why I've been kicking myself for not thinking of the
apply-imports method first - I've been using OOPLs a lot of years, and
well know the correspondence between XSLT import and inheritance.  Oh
well.

The interesting thing XSLT has over OOPLs in general is that since the
method name is essentially the template match pattern you get to
overide many "methods" (templates) at once, as in the *[@mark] trick.
A new feature for Java 3 maybe...


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