RE: build a "dynamical" parameter

Subject: RE: build a "dynamical" parameter
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 3 Nov 2000 14:39:55 -0400 (EST)
> 
> what u mean with "generating the stylesheet dynamically"
> u got an example ? (i think thats what i am trying to do <g>)

A stylesheet is an XML document so you can construct it as the result of an
XSLT transformation. Alternatively, you can use tools such as DOM and SAX to
manipulate it. For example, if what you want to do is to change a single
expression defined in a global <xsl:variable>, you can feed the stylesheet
to the XSLT processor via a SAX filter that changes the expression before
the XSLT processor sees it.
> 
> and if i do it with saxon:evaluate() then it wont work on all 
> plattforms right ?

Correct. (And the API for invoking a processor via a SAX filter will vary
for each processor as well).
 
> btw... is there a way to convert a string to a nodelist ?

Another Saxon extension function: saxon:tokenize().

Mike Kay




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


Current Thread