Subject:Problem Setting Variable Author:Karen Fox Date:15 Apr 2008 04:38 PM
I'm trying to create a variable using the output of an xsl:choose. However, I keep getting back an empty variable. I need to validate whether a certain field in the XML document has a value from one of the two imported documents. Could someone please guide me in the right direction? I need to be able to check this variable afterward to see if it has content or not. Thank you.
Subject:Problem Setting Variable Author:(Deleted User) Date:16 Apr 2008 03:18 AM
Hi Karen,
the variable is created correctly; the bug is in the use of xsl:value-of to print it, as the text value of <ucore:what> element stored inside the variable is an empty string. You should use <xsl:copy-of select="$found"/> instead.