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 November 6th, 2006, 05:28 AM
Authorized User
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Logical operators

Is there is any Logical OR operators which i could use in the XSLT file

<xsl:if test="Is_Vendor='true'" or Is_Vendor='yes'>

The above line giving error


Old November 6th, 2006, 06:00 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

Is Is_Vendor a child of the context node? Show the source XML and the XSLT.


Joe (Microsoft MVP - XML)
Old November 6th, 2006, 06:48 AM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

It's an error because you've got your quotes in a twist. You want

<xsl:if test="Is_Vendor='true' or Is_Vendor='yes'">

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Old November 11th, 2011, 06:09 AM
Registered User
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hii

Thaks a lot..was helpful to me !!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Increment Operators alexdelamuerte BOOK: Beginning JavaScript 3rd Ed. ISBN: 978-0-470-05151-1 2 December 3rd, 2008 11:51 AM
Non-ANSI outer join operators Jeff Kanning SQL Server 2005 14 September 9th, 2008 08:02 PM
Math operators nguyendh BOOK: Ivor Horton's Beginning Visual C++ 2005 1 June 25th, 2006 01:35 AM
Matrix operators Ravel99 Pro VB 6 0 April 28th, 2006 03:45 AM
Chap 4--using a combination of operators mixtli BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 June 9th, 2003 04:55 AM

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