[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to create predicate dynamically
If it needs to be completely dynamic, then you need something like
saxon:evaluate(), and you need to solve the problem with the apostrophes ;-)
One way to do that (and also to protect against code injection) is to generate a call using parameters: saxon:evaluate("*[@type = $p1 or @type=$p2]", 'mc', 'ti') But I wonder if it does need to be completely dynamic? Would <xsl:variable name="x" select="('mc', 'ti')"/> <... *[@type = $x] > solve the problem? Michael Kay Saxonica On 25/05/2012 10:55, Jesper Tverskov wrote: Hi
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|