|
Subject: Including http:// as value of href From: prashanth.b.rao@xxxxxxxxxxxxxxxx Date: Mon, 14 Aug 2000 13:50:52 -0500 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Line Numbering, Jeni Tennison | Thread | RE: Including http:// as value of h, Joshua Allen |
| Re: Recursion in XSL, Jeni Tennison | Date | Re: Lopping off Element Type names , Jeni Tennison |
| Month |