File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
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
I agree. Here's the link:
subject: how to use variable in XSLT if condition
Need help with some conditional logic
XSLT - Getting Parent Node based on child node
break the loop in XSL
Need help with XSLT
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015