[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Display HyperLink

Subject: Re: Display HyperLink
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Thu, 26 May 2005 16:00:09 -0500
hyperlink name
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.