This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Including http:// as value of href
- To: XSL-List at mulberrytech dot com
- Subject: Including http:// as value of href
- From: prashanth dot b dot rao at us dot pwcglobal dot com
- Date: Mon, 14 Aug 2000 13:50:52 -0500
- Reply-To: xsl-list at mulberrytech dot com
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