[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: applying templates to an attribute
At 05:40 PM 12/18/01, you wrote:
I find the following very useful and simple. ( BTW $output is a parameter) But by dropping data into attribute values, you accept the constraints thereof, such as (for example) no element structure within that data. But I cannot put any markup in the content, like if I want John <i>will</i> create a new product.
<xsl:template match="alt"> <xsl:apply-templates select="*[name()=$output]"/> </xsl:template> Elements in XML are made the way they are *in order* that they can support not-entirely-rigidly-structured data and mixed content. They are your friends. Cheers, Wendell
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
|