Matt (archive)
Usenet Archive
- Joined
- Jan 13, 2000
- Messages
- 739
- Reaction score
- 0
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!!
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!!