jdw22 Posted May 8, 2012 Share Posted May 8, 2012 <xsl:variable name="test" select="'ohhi'"/><xsl:variable name="sections" select="/QUERY_MODULE/CRITERIA/SECTIONS"/> <xsl:variable name="sections3"> <xsl:choose> <xsl:when test="$test='ohhi'"><xsl:value-of select="$sections"/></xsl:when> <xsl:otherwise><xsl:value-of select="$sections"/></xsl:otherwise> </xsl:choose></xsl:variable> sections3 and sections should have the same results but they do not. obviously this is pointless code. the original code was not working, so i reduced it to isolate the problem. any help is appreciated Link to comment Share on other sites More sharing options...
jdw22 Posted May 9, 2012 Author Share Posted May 9, 2012 okay okay okayhere is the deal<value-of select> means just that 'value of'not 'entire node please'there is another way to do an if else then using the choose / when / otherwise.in the future, try not to be so stupid and waste our time. that would be great. Link to comment Share on other sites More sharing options...
boen_robot Posted May 13, 2012 Share Posted May 13, 2012 Did you just told yourself not to waste your own time? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now