xsl-list
[Top] [All Lists]

Re: Element selection based on different overlapping descendant subsets

2006-02-02 10:28:32
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(_at_)mulberrytech(_dot_)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
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--