unfortunately thats not exactly what i want. your right i was using xsl:value-of to pull out the value. but when i switch to xsl:copy-of, it just prints out the value of the <p> element with the <a href...></a> element embedded in it. i need to replace the <a href...></a> element with the <link...></link> element.
i can do it if the html was written as:
Code:
<p>
<text>this is a test message</text>
<a href="nextpage.html">Next page</a>
<text>end of message</text>
</p>
it's because the <a href..> is embedded inside the value of <p> that is causing me problems.
any ideas?