Re: [xsl] equivalent od #define

Subject: Re: [xsl] equivalent od #define
From: "Robert Van Gemert" <rcvangemert@xxxxxxxxxxxxxxxx>
Date: Sun, 27 Nov 2005 22:15:53 +1100
Colin,

Yes, but I need to change the varable based on the value of another variable and all this need to be global. I cannot use <xsl:choose> outside a template.

-rvg
----- Original Message ----- From: "Colin Paul Adams" <colin@xxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, November 27, 2005 10:09 PM
Subject: Re: [xsl] equivalent od #define



"Robert" == Robert Van Gemert <rcvangemert@xxxxxxxxxxxxxxxx> writes:

Robert> Hi, I am using msxml single pass transforms and am trying Robert> to implement #define and #ifdef statements. The aim is to Robert> establish the value of constants based on the value of Robert> another constant. The values need to be defined only once Robert> but are based on another value. I have tried using Robert> <xsl:choose> statements outside a template but this is not Robert> allowed. Can somebody suggest a strategy to achieve this Robert> as part of the stylesheet.

Use xsl:variable.
--
Colin Adams
Preston Lancashire

Current Thread