Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 18th, 2008, 02:44 AM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default using href in xslt

Hi,
i have an xml

<richtext xmlns:xd="http://www.lotus.com/dxl">
  <pardef id="2" />
  <par def="2">&lt;img src= c:/Pdf.gif onClick=OpenFile( C:\Rajesh , BKCLOS.DOC )&gt;&lt;/img&gt;</par>
</richtext>

i need to write an xsl,such thatafter doing my transformations my html
should be like
<td><img src="c:/Pdf.gif"><a href="pdf.jsp">?pid=C:\rajesh\BKCLOS.DOC</a></td>

we can write the xsl in this way but i am not able to use regular expression

<xsl:for-each select="richtext/par">
<img src="c:/Pdf.gif" /><a href="pdf.jsp"><xsl:value-of select="." disable-output-escaping="yes"/></a>
</xsl:for-each>

when i am using the above xsl
my html output after transformation looks this way

<td><img src="c:/Pdf.gif"><a href="pdf.jsp">

<img src= c:/Pdf.gif onClick=OpenFile( C:\rajesh , BKCLOS.DOC )>
</img>
i need to replace the above content to C:\rajesh\BKCLOS.DOC which is in between the img.
</a></td>

Is this possible ,if so please help me out how can i go ahead


Thanks in advance
Raj







Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving XML thru href link using XSLT kaukabhishek XSLT 16 June 25th, 2008 07:16 PM
Chapter 8, href and HRef (p. 285) roman BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 June 16th, 2008 10:40 AM
Want to pass value at href in anchor tag on xslt Abhinavnaresh XSLT 4 February 21st, 2008 04:32 AM
href in xslt rahulsk1947 XSLT 2 May 18th, 2007 07:39 PM
href darkhalf Javascript 2 November 20th, 2005 10:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.