Subject:A HREF Links in XML Author:Dan Hurwitz Date:13 Apr 2000 09:03 AM
Below are snippets of the XSL and XML files. In the output html, CNN is a hotlink to http://cnn.com but the looping for ABC does not work. Can someone please provide an example of looping that works with this example so that both CNN and ABC are links.
Subject:A HREF Links in XML Author:Richard Gemmell Date:14 Apr 2000 08:38 AM
On 4/13/00 9:03:15 AM, danh wrote:
>Below are snippets of the XSL
>and XML files. In the output
>html, CNN is a hotlink to
>http://cnn.com but the looping
>for ABC does not work.
Your XSL template matches the wrong node. (links rather than link) Use these instead:-
PS You can abbreviate the last template to:-
[xsl:template match="link"]
[br/][a HREF="{url}"][xsl:value-of select="url_text"/][/a]
[br/]
[/xsl:template]