using href in xslt
Hi,
i have an xml
<richtext xmlns:xd="http://www.lotus.com/dxl">
<pardef id="2" />
<par def="2"><img src= c:/Pdf.gif onClick=OpenFile( C:\Rajesh , BKCLOS.DOC )></img></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
|