[xsl] Using an XSLT value as a HTML parameter

Subject: [xsl] Using an XSLT value as a HTML parameter
From: "J.Brown (Ender/Amigo)" <ender@xxxxxxxxxxxx>
Date: Fri, 14 Sep 2001 12:38:06 +0800 (WST)
Hey all.

I'm trying to do something similar to this:

 (xml)
   <text format="color" value="#113344">
 (/xml)

 (xsl)
    <xsl:template match="text">
	<font "{./@format}"="{./@value}">
     <xsl:apply-templates/>
	</font>
    </xsl:template>
 (/xsl)

Alternativly a way to simply say <text color="#1111111"> without having to
put in a large number of ifs (as the color tag may be something different)
would be neat :)

 TIA!

 - Ender


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread