Jump to content
Sign in to follow this  

XML/XSL Field IF statement

Recommended Posts

I am new to XML/XSL and am trying to get an if statement to work but I can't seem to get the language right. I want to show a link based on the contents of a field in my database. ie: if there is no data in the field I don’t want a link (or image to the link) to be displayed but if there is any data in the field (the data in the field would be a link)I want it to be displayed as a link.

Any help would be greatly appreciated. I have found this forum to be very helpful in the past.

Share this post

Link to post
Share on other sites

The statement should be like that

  <-- whatever -->

This assumes you have only one record in your found set; otherwise you'll have to use more sophisticated XPath expression to get to the field.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.