Subject: Re: [xsl] Catch ALL | Failed template rule From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 22 Mar 2005 16:02:21 -0500 |
Jumping in at the eleventh hour and probably am hugely wrong here, but, wouldn't the following work ?
<xsl:apply-template select="*[not(foo/bar[@a='b'])]" mode="unmatchedresults"/>
This would match any node that did not have the foo/bar entity with an attribute of a that was b. you would (of course) need to provide some other search criteria such as name()="corefoo" so that it didn't match elements you were not interested in.
As a sidenote, I have used the following in my xslt to match any sub-element that was -not- a prev, next or alternativenames
<xsl:for-each select="*[not(name()='prev') and not(name()='next') and no t(name()='alternativenames')]">
Is there any 'cleaner' or 'saner' way to write this ?
Cheers, Wendell
again, apologies if this is not what was asked for, I am simply trying to offer something that has worked for me in a somewhat similiar fashion.
Cheers, 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Catch ALL | Failed templa, Stef | Thread | Re: [xsl] Catch ALL | Failed templa, Wendell Piez |
Re: [xsl] Catch ALL | Failed templa, Stef | Date | Re: [xsl] Catch ALL | Failed templa, Wendell Piez |
Month |