M
Matt
How to put XSLT element <xsl:value-of> inside an HTML tag?
For example, how to represent hyperlink in XSL? I want to add hyperlink in XSL.
i.e. I need to generate <A HREF="http://mypage.html">home page</A> in HTML.
I tried the following approaches but still not work, it don't display anything
Approach #1: direct link, not work
A) double quote, <A HREF="<xsl:value-of select="/bio/homepage" />">home page</A>
OR
B) single quote, <A HREF='<xsl:value-of select="/bio/homepage" />'>home page</A>
Approach #2: introduce new variable, not work
<xsl:variable name="hp" select="/bio/homepage" />
<A HREF="$hp">my page</A>
Another example, if I do this, it don't display anything also.
<select name='<xsl:value-of select="@id"/>'>
any ideas? please advise. thanks!!
For example, how to represent hyperlink in XSL? I want to add hyperlink in XSL.
i.e. I need to generate <A HREF="http://mypage.html">home page</A> in HTML.
I tried the following approaches but still not work, it don't display anything
Approach #1: direct link, not work
A) double quote, <A HREF="<xsl:value-of select="/bio/homepage" />">home page</A>
OR
B) single quote, <A HREF='<xsl:value-of select="/bio/homepage" />'>home page</A>
Approach #2: introduce new variable, not work
<xsl:variable name="hp" select="/bio/homepage" />
<A HREF="$hp">my page</A>
Another example, if I do this, it don't display anything also.
<select name='<xsl:value-of select="@id"/>'>
any ideas? please advise. thanks!!