Subject: Re: [xsl] match on attribute anywhere From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 14 Feb 2002 15:47:51 -0500 |
Cheers, Wendell
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] match on attribute anywhe, Trevor Nash | Thread | Re: [xsl] match on attribute anywhe, Wendell Piez |
Re: [xsl] xsl:include with plain te, Peter Davis | Date | RE: [xsl] xsl:include with plain te, Ivan Rubin Ayma |
Month |