Re: [xsl] Element selection based on different overlapping descendant subsets

Subject: Re: [xsl] Element selection based on different overlapping descendant subsets
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 02 Feb 2006 12:28:32 -0500
At 05:03 AM 2/2/2006, David wrote:

Is there a shortcut for the predicate of $d in the above so
that I could e.g. have a series of sequence variables defined

<xsl:variable name="Mlist" select="'ROW', 'CELL', 'A',..." />

<xsl:when test="every $d in .//* satisfies local-name($d)=$Mlist"

Or:


<xsl:variable name="Mnodes" select="//ROW | //CELL | //A ..."/>

<xsl:when test="every $d in .//* satisfies exists($d intersect $Mnodes)"/>

(Is there a more concise way to do this? How would it compare in terms of efficiency?)

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