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

RE: XSLT: conversion: string variable to selection pattern


Subject: RE: XSLT: conversion: string variable to selection pattern
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 14 Jul 1999 13:57:47 +0100

> 
> <xml:template name="myTemplate" match="$myString">
> 
> The above syntax doesn't work;  is there a way to explicitly 
> convert my string variable into a reference pattern

No. There is no way to construct an expression or pattern in XSLT at
run-time, any more than there is in (say) C or C++. XSLT is not a reflexive
language, the stylesheet has no access to itself.

If you really need this, the only solution is to generate a stylesheet and
then execute it.

Mike Kay 


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



Current Thread
Keywords