[thelist] Avoid the CDATA dance in XSL
Jason Bauer
jbauer at mtu.edu
Fri May 31 10:55:00 CDT 2002
At 07:52 PM 5/31/02 +1000, you wrote:
>CDATA DANCE:
><![CDATA[<a href="?op=info&id=]]><xsl:value-of select="uid"
>/><![CDATA[">]]><xsl:value-of
>select="alias" /><![CDATA[</a>]]>
This works too:
<a href="?op=info&id={uid}"><xsl:value-of select="alias" /></a>
Putting {} around an XPath expression in an attribute value puts the value
of the element pointed into the attribute value...
Also, notice the & instead of &.
--
Jason Bauer
jbauer at mtu.edu
Michigan Tech Fund
Web Site Coordinator
http://www.mtf.mtu.edu/
More information about the thelist
mailing list