[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] newbie question


Subject: [xsl] newbie question
From: "Dionylon Briones" <lon@xxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Jul 2004 16:51:20 -0700

hello everyone,
i'm new to XSL and need help with this problem:

choose a link for the title, base on the following conditions:
  1. if the value of the link node has 'http://' string
  2. if there's no 'http://' string get the value of the link node that
contains 'ftp://' string

output should be: <a href="selected link">title</a>

thanks

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<record>
 <data>
  <link>http://www.link1.com</link>
  <link>3csbv</link>
  <link>ftp://link2.com</link>
  <link>http://www.link3.com</link>
  <title>title</title>
 </data>
 <data>
  <link>45csgh</link>
  <link>invalid link</link>
  <link>ftp://link1.com</link>
  <title>title</title>
 </data>
</record>


Current Thread
Keywords
xsl