This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]