Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
how to use variable in XSLT if condition
Joined: Jan 29, 2003
Dec 21, 2004 12:10:00
I have a situation like this
In my XML I have
I have to delete all the caseinformation nodes whose region is not VA.
For that i stored first region value in a variable called regionvalue and trying to compare
<xsl:if $regionvalue=<xsl:value-of select="/records/caseinformation/region"/>>
it is giving the error ,I am still in learning stage in XSLT.
Please somebody tell me how to solve this
author and deputy
Joined: Jul 13, 2001
Dec 22, 2004 01:36:00
got a friendly tutorials on xsl,xpath,xsd and so on. do read them
Your xslt gives error because xsl:if
condition should go under test attribute of xsl:if..
Spritle Software Blogs
It is sorta covered in the
JavaRanch Style Guide
subject: how to use variable in XSLT if condition
Need help with XSLT
break the loop in XSL
XSLT - Getting Parent Node based on child node
Need help with some conditional logic
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013