[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL bracket nested in HTML a tag
At 17:27 31-08-2000 +0200, Thorbjørn Ravn Andersen wrote:
> I'm using an XSL parameter : <xsl:param > name="server">www.hp.com</xsl:param> > so, in my XSL file, I want to use : > <a HREF="http://<xsl:value-of select="$server">">, but guess > what... It > doesn't work! > the parser does not accept bracket within tag. > Has anybody an idea about how to solve this pb? Or use an attribute value template (AVT). With xsl:attribute: <a> <xsl:attribute name="href"> <xsl:text>http://</xsl:text> <xsl:value-of select="$server"> </xsl:attribute> <!-- content of <a> --> </a> With an AVT: <a href="http://{$server}"><!-- content of <a> --></a> -Chris -- Christopher R. Maden, Senior XML Analyst, Lexica LLC 222 Kearny St., Ste. 202, San Francisco, CA 94108-4510 +1.415.901.3631 tel./+1.415.477.3619 fax <URL:http://www.lexica.net/> <URL:http://www.oreilly.com/%7Ecrism/> 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
|