|
-
Aug 27th, 2003, 09:32 AM
#1
Thread Starter
Hyperactive Member
XSLT: If/else Question **SOLVED**
Hey all, I have a small question concerning XSLT!
Lets say I have a xml Document with this structure:
<result>
<id>1234</id>
<test>0</id>
</result>
Now, what I want to do in my XSLT is to read the value of test. If that value is 0 or null, perfom some xslt else perform some different xslt.
I know how to do a choose to see if an element is there but I dont know how to get the value:
Heres what I have upt till now:
<xsl:choose>
<xsl:when test="test">
// do something
</xsl:when>
</xsl:choose>
<xsl: otherwise>
// do something different
</xsl: otherwise>
Thanx in advance,
Stephan
Last edited by Sgt-Peppa; Aug 27th, 2003 at 10:37 AM.
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|