[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] variable match attribute


Subject: Re: [xsl] variable match attribute
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Jul 2001 13:02:39 +0200 (MET DST)

> I know, the match attribute is a pattern, where I can't use variables
> but how can I solve the problem:
> 'read element names from a document B and use them as template pattern
> in document a'

one possible solution I think:

<xsl:template match="*">
   <xsl:if test="$start/*[name() = name(current())]">
      ...
   
Cheers,
Oliver

/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread