xsl-list
[Top] [All Lists]

Re: Display HyperLink

2005-05-26 14:00:09
Doh!.  Just got a chance to run it through a test and ....some minor
corrections.

the url variable hs some problems with the ().  One too many.  I'm a
little use to having emacs double check these for me.
but the correct version should be 

<xsl:variable name="embedlink" select="@c6"/>
 <xsl:variable name="url"
 select='substring-before(substring-after($embedlink,"="),"&#x3e;")'/>
 <xsl:variable name="anchtext"
 select='substring-before(substring-after($embedlink,"&#x3e;"),"&#x3c;")'/>
 <xsl:element name="a">
 <xsl:attribute name="href"><xsl:value-of select="$url"/></xsl:attribute>
 <xsl:value-of select="$anchtext"/>
 </xsl:element>


put this whereever you had the 
<xsl:value-of select="@c6"/>

  One is the xml parser is replacing the unicode character
entities with their counterparts, so &#x3c; becomes <.  This is
essentially the same as putting in &lt;.  

PS.  This is the far, far more likely scenario, although I believe you
could have the second one happen with enough messing around.  Don't
worry too much about that.

Jon

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>