XSLT Help with Substrings
I have this XML
<?xml version="1.0" ?>
<article>
<body>
<p>TEST Content Start</p>
<p><a href="resource:article:WN_Test/default:PW_C157504.xml:public"><img src="/cmscontrib2/pw_a056436.gif" web_source="resource:image:WN_Test/default:PW_A056436.gif:public" alt="Test Image" /></a></p>
<p>TEST Content END</p>
</body>
</article>
and I need an XSL that will translate this xml to html that looks something like this.
<body>
<p>TEST Content Start</p>
<p><a href="/WN_test/articles/PW_C157504.xml"><img src="/WN_Test/pw_a056436.gif" alt="Test Image" /></a></p>
<p>TEST Content END</p>
</body>
Pretty simple, it's just a link on an image.
I can build an href link to basic text, and I can build a good image link, but I can't figure out how to build a link to something else when it' on an image. Should be easy... Any help would be greatly appreciated
Last edited by drob; February 22nd, 2013 at 04:11 PM..
|