[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Dynamicly Generate a apply-templates match pattern.
Hello, I have an html template into which I would like to place structures generated from a separate xml document. My html template looks like this: <html xmlns:rui="user.interface"> <header> <title> <rui:insert type="title" match="pageDisplayName"/> </title> </header> <body> <rui:insert type="pageheader" match="document('header.xml')"/> </body> </html> In my main xslt I have a global variable (content) that holds the node set for I will transform into my html template: the node set looks like this: <results> <page> <pageDisplayName>Page Title</pageDisplayName> <body> <content>some content</content> </body> </page> </results> I would like to be able to transform my html template so that the match attribute of my rui:insert element is used to generate an apply-templates select statement. The template would be something like this: <xsl:template match="rui:insert"> <xsl:apply-templates select="$content/@match"/> </xsl:template> I realize that this is not a legal template match pattern, but if anyone knows a method to dynamically generate the match pattern, It would be much appreciated. Thanks Peter
|
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
|