|
Subject: RE: Including http:// as value of href From: Joshua Allen <joshuaa@xxxxxxxxxxxxx> Date: Mon, 14 Aug 2000 20:01:02 -0700 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Including http:// as value of href, prashanth . b . rao | Thread | RE: Including http:// as value of h, David Allouche |
| Re: Line Numbering, Paul Tchistopolskii | Date | submitting rtf contained within par, Matthew Bentley |
| Month |