existing global variable.
1) Try populating the global variable upon creation. Something like:
HTH...
I support PASS, the Professional Association for SQL Server.
<jplankala@discussions.microsoft.com> wrote:
>Hi Shyam,
>
>I was using the same XML that the NS Service runs against the xslt. I
>generated this XML using the NS service without applying any transformations
>
>Thanks,
>
>Jplankala
>
>"Shyam Pather [MSFT]" wrote:
>
>> Hello,
>> I'm not by any means an expert on XSLT, so I don't know the answer to your
>> question right away. When you
>> say you've tested this against "a simple XML" input, are you sure that's the
>> exact same XML that the NS service runs the XSLT against? My suggestion
>> would be to make sure you're testing against the same XML input that NS
>> uses, and then debug from there. You can obtain the raw XML that NS
>> generates by configuring your content formatter to use the passthrough XSLT
>> I've attached to this post - as the name suggests, it just passes through
>> the XML content without applying any transformations.
>>
>> If you have my book
>> (
http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/), you'll find a
>> detailed description the XML that is passed to the XSLTs in Chapter 9, page
>> 361.
>>
>> Hope this helps.
>> -shyam
>> --
>> Learn more about SQL-NS:
>>
http://www.amazon.com/exec/obidos/tg/detail/-/0672326647/ >> ---------------------------------------------
>> This posting is provided "AS IS" with no warranties, and confers no rights.
>> Use of included script samples are subject to the terms specified at
>>
http://www.microsoft.com/info/cpyright.htm. >> ---------------------------------------------
>> "jplankala" <jplankala@discussions.microsoft.com> wrote in message
>> news:4E4E21D0-3901-4644-9AA5-272B7B882D8E@microsoft.com...
>> > Hi,
>> >
>> > When I use xslt for formatting the notification, I am facing some issues
>> > with the variables inside xslt.I have a variable which is declared with
>> > global scope. I am assigning a value to this variable within a TABLE(
>> > <TABLE>..</TABLE>) and I am not able to use the value of this variable
>> > outside the table where is is defined. When the Notification service
>> creates
>> > the notification It is is failing to populate the the value of the
>> varibale
>> > in a different place(other than the decalred <TABLE>..</TABLE>).
>> >
>> > When I test this using a simple XML and and the same XSLT, It is working
>> fine.
>> >
>> > eg:
>> >
>> > <?xml version="1.0" encoding="UTF-8" ?>
>> > <xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" >> > xmlns:msxsl="urn:schemas-microsoft-com:xslt"
>> > xmlns:user="urn:my-scripts"
>> > version="1.0">
>> > <xsl:variable name="var1"/>
>> > <xsl:template match="/">
>> > <HTML><BODY>
>> > <TABLE>
>> > ..
>> > ..
>> > <xsl:variable name="var1"/>
>> > <xsl:value-of select="abc" />
>> > </xsl:variable>
>> > <TABLE/>
>> >
>> > <!--Variable var1 is not giving the above assigned value in the below
>> > block-- happening only when Notification service formats the notification
>> in
>> > a normal XML value of this variable isgetting displyed -->
>> >
>> > <TABLE>
>> > ..
>> > ..
>> >
>> > <xsl:value-of select="$abc" />
>> > ...
>> > <TABLE/>
>> >
>> >
>> > Please help me in resolving this,
>> >
>> > Jplankala
>> >
>>
>>
>>