This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: build a "dynamical" parameter


> 
> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]