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

RE: Including http:// as value of href

Subject: RE: Including http:// as value of href
From: Joshua Allen <joshuaa@xxxxxxxxxxxxx>
Date: Mon, 14 Aug 2000 20:01:02 -0700
xsl value of href
Try <xsl:value-of select="concat('http://',.)" />


> -----Original Message-----
> From: prashanth.b.rao@xxxxxxxxxxxxxxxx
> [mailto:prashanth.b.rao@xxxxxxxxxxxxxxxx]
> Sent: Monday, August 14, 2000 11:51 AM
> To: XSL-List@xxxxxxxxxxxxxxxx
> Subject: Including http:// as value of href
> 
> 
> 
> 
> I believe that the answer to my question has been posted 
> before, but I've
> searched the archives and am unable to find it.  Even though 
> the outputted HTML
> works to display the link correctly, it is not very pretty.  
> I would like to
> directly insert 'http://' into the beginning of the value of 
> HREF.  I would
> appreciate any instance.
> 
> Thanks.
> Prashanth Rao
> 
> Here are my XML, XSL, HTML snippets:
> 
> XML
> -------
>    <url>www.yahoo.com</url>
> 
> XSL
> -------
>   <xsl:template match="url">
>      <A>
>         <xsl:attribute name="HREF">
>         http://<xsl:value-of select="."/>
>      </xsl:attribute>
>         <xsl:apply-templates/>
>      </A>
>   </xsl:template>
> 
> 
> HTML Output
> ----------------------
> <A HREF="
>         http://www.ford.com">www.ford.com</A>
> 
> ----------------------------------------------------------------
> The information transmitted is intended only for the person 
> or entity to which
> it is addressed and may contain confidential and/or 
> privileged material.  Any
> review, retransmission, dissemination or other use of, or 
> taking of any action
> in reliance upon, this information by persons or entities 
> other than the
> intended recipient is prohibited.   If you received this in 
> error, please
> contact the sender and delete the material from any computer.
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.