Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2007, 02:11 AM
Authorized User
 
Join Date: Jun 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default regarding conditional statements

iam using libxml for creating and editng my xml pages .
now i have problem with conditional satement.
is there any conditional statements in xml.
if it is how can i use if statement

actually my requirement is
if i pass a=500 to my xml file
it will check the conditions like this
if (a>1 && a<250)
a=1;
else if(a>250 && a<=500)
a=0;
how can i write this in xml file
and i want to return tht "a" value to my c program
thank u in adavancee
abhi

 
Old July 21st, 2007, 06:00 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Presumably you have posted this on an XSLT forum because you are using XSLT, but you seem very confused. When you say "xml file" do you mean "XSLT stylesheet"? XSLT allows parameters to be passed using xsl:param, and it allows conditional instructions using xsl:if. You'll find information about these in any XSLT textbook.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
if statements brainchild Javascript 2 March 1st, 2007 06:08 AM
IF ELSE statements gmpurple Classic ASP Databases 4 November 15th, 2004 04:30 PM
C# Conditional statements sporkman43 General .NET 2 July 23rd, 2004 09:10 AM
Conditional Statements in web.config kbuckhei VS.NET 2002/2003 0 April 15th, 2004 04:12 PM
If, else if statements Joel JSP Basics 0 March 18th, 2004 06:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.