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

transform a link

Subject: transform a link
From: yan bai <bytj@xxxxxxxxx>
Date: Thu, 15 Nov 2001 13:58:00 -0800 (PST)
xsl attribute
Hi, Gurus,
I am trying to transform an xml to a html file.
My problem is when the transformation is done, a
report_1.htm is created at 
www.mydomain.com/test/reports/summary/report_1.htm

The report_1.htm has a link to a detail_1.htm which is
located at 
www.mydomain.com/test/details/invoice/detail_1.htm

In the xsl file, I use the following trick:
<xsl:variable name="link">
   ../../details/invoice/detail_1.htm
</xsl:variable>
<a>
   <xsl:attribute name="href">
       <xsl:value-of select="$link"/>
   </xsl:attribute>
   <xsl:value-of select="link_title"/>
</a>

However, in the final report_1.htm, I found the link
actually looks like:
%0A%09%09%09%09%09%09../../details/invoice/detail_1.htm

If I click this link, the URL will go to:
www.mydomain.com/test/reports/summary/details/invoice/detail_1.htm,
and the correct page will be displayed.

Any idea on how to correct it?

Thanks so much.

Yan

__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

 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.