[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Q: XSLT: conversion: string variable to selection pattern
I am using XSLT; I have a <xsl:param-variable> which is a string. I want to directly apply this variable's value as my template selection pattern; i.e: <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 (i'm not sure what difference there is between the two, aside from named type) Also: I'm assuming some explicit string-to-pattern conversion must exist, because I also have the following conflict: In applying <xsl:value-of select="$myString">, in some cases I want to output the value of my variable; others, I want to output the text node content at the cell with the same name as the value of my string variable; all help appreciated, Aaron XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|