[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Q: XSLT: conversion: string variable to selection pattern

Subject: Q: XSLT: conversion: string variable to selection pattern
From: Aaron Fischer <fischer17@xxxxxxxx>
Date: Tue, 13 Jul 1999 17:15:36 -0700
xslt string variable
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.