P_Aybara
July 31st, 2000, 03:50 PM
I'm trying to do a test such as the following in an XSL document:
if x-a < 10 then write 0
How would I go about doing this? This works fine for something simple like if x < 10:
xsl:if test="X[.$lt$10]"
but how would I go about doing something like:
xsl:if test="X-A[.$lt$10]"
(note that A is a fairly complicated expression which involves Xs, and I couldn't simplify X-A < 10 into a nice expression with just Xs on one side and constants on the other)
Sorry if that was confusing, not really sure how to explain it better than that. Any help is greastly appreciated. Thanks.
BTW, how do you get less than and greater than to appear in these posts so you can show HTML tags?
if x-a < 10 then write 0
How would I go about doing this? This works fine for something simple like if x < 10:
xsl:if test="X[.$lt$10]"
but how would I go about doing something like:
xsl:if test="X-A[.$lt$10]"
(note that A is a fairly complicated expression which involves Xs, and I couldn't simplify X-A < 10 into a nice expression with just Xs on one side and constants on the other)
Sorry if that was confusing, not really sure how to explain it better than that. Any help is greastly appreciated. Thanks.
BTW, how do you get less than and greater than to appear in these posts so you can show HTML tags?