Detecting selected account

Detecting selected account

am 11.01.2007 18:33:47 von aljamala

Hi,

I am looking for different ways this can be accomplished, I can think
of a way, but I'm not too happy with it...

The Problem: Users with multiple accounts can switch between them;
however, the selected account is highligted by adding an invalid
"udb_id" attribute to the tag and replacing that tag with the
color that we want



to



using XSL style sheet


strHTML = TransformXML(Session("User_Profile"),
"xsl/AccountProfile.xsl")
If strHTML <> "" Then
strHTML = Replace(strHTML, strSearchAccount, " src='images/red_arrow.gif' width='10' height='10'>")
strHTML = Replace(strHTML, strSearchBGColor,
"bgcolor='#ffe4b5'")


XSL snippet is below


select="udb-id|ccex-id|portfolio-id|infolease-id"/> select="program-type"/>
width="3" height="1"/> select="udb-id|ccex-id|portfolio-id|infolease-id"/> select="program-type"/>

Now, I want the page to be HTML 4.01 compliant and hence, remove the
udb_id attribute.

I've thought of adding a comment with the udb_id beside the tag
and replace it with what i want upon selection (ie remove comment and
end of tag and add in gbcolor), but I dont really like that
solution.

Can anyone recommend something better? I still need to use the XSL on
my XML-like session profile...

Cheers

Re: Detecting selected account

am 11.01.2007 19:01:16 von aljamala

I realize also that the id may also be passed in through the query
string.

Re: Detecting selected account

am 11.01.2007 19:10:52 von exjxw.hannivoort

wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:

> I realize also that the id may also be passed in through the query
> string.

What are you posting about?

Is Sigmund Freud's Id passed away?

[please always quote on usenet]

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Detecting selected account

am 11.01.2007 19:33:18 von aljamala

Evertjan. wrote:

> What are you posting about?
>
> Is Sigmund Freud's Id passed away?
>
> [please always quote on usenet]
>
The post just above it regarding how to get that ID while switching
account, I remembered something an added it in, I saw no need to
quote..

Does anyone know how to pass in a parameter from ASP to XSL?

Re: Detecting selected account

am 11.01.2007 19:41:26 von exjxw.hannivoort

wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:
> Evertjan. wrote:
>
>> What are you posting about?
>>
>> Is Sigmund Freud's Id passed away?
>>
>> [please always quote on usenet]
>>
> The post just above it regarding how to get that ID while switching
> account, I remembered something an added it in, I saw no need to
> quote..

"The post just above it" is only pertinent to your news reader,
but can be quite another post in another one.

That other post could be not yet or no more be available
on anothers news server.

So your "I saw no need to quote" was a bad sight.

> Does anyone know how to pass in a parameter from ASP to XSL?

<% = myParameter %>



--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Detecting selected account

am 11.01.2007 19:47:13 von aljamala

> "The post just above it" is only pertinent to your news reader,
> but can be quite another post in another one.
>
> That other post could be not yet or no more be available
> on anothers news server.
>
OK, here it is again
-----
Hi,

I am looking for different ways this can be accomplished, I can think
of a way, but I'm not too happy with it...


The Problem: Users with multiple accounts can switch between them;
however, the selected account is highligted by adding an invalid
"udb_id" attribute to the tag and replacing that tag with the
color that we want





to





using XSL style sheet



strHTML = TransformXML(Session("User_Profile"),
"xsl/AccountProfile.xsl")
If strHTML <> "" Then
strHTML = Replace(strHTML, strSearchAccount, " src='images/red_arrow.gif' width='10' height='10'>")
strHTML = Replace(strHTML, strSearchBGColor,
"bgcolor='#ffe4b5'")



XSL snippet is below



select="udb-id|ccex-id|portfolio-id|infolease-id"/> select="program-type"/>
width="3" height="1"/> select="udb-id|ccex-id|portfolio-id|infolease-id"/> select="program-type"/>


Now, I want the page to be HTML 4.01 compliant and hence, remove the
udb_id attribute.


I've thought of adding a comment with the udb_id beside the tag
and replace it with what i want upon selection (ie remove comment and
end of tag and add in gbcolor), but I dont really like that
solution.


Can anyone recommend something better? I still need to use the XSL on
my XML-like session profile...


Cheers



>
> > Does anyone know how to pass in a parameter from ASP to XSL?
>
> <% = myParameter %>
>
ummm, no!? thats a response.write

Re: Detecting selected account

am 11.01.2007 19:55:43 von exjxw.hannivoort

wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:

>> > Does anyone know how to pass in a parameter from ASP to XSL?
>>
>> <% = myParameter %>
>>
> ummm, no!? thats a response.write
>

So?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Detecting selected account

am 11.01.2007 19:58:18 von exjxw.hannivoort

Evertjan. wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:

> wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:
>
>>> > Does anyone know how to pass in a parameter from ASP to XSL?
>>>
>>> <% = myParameter %>
>>>
>> ummm, no!? thats a response.write
>>
>
> So?
>

Ah, wait, perhaps you ment ASP.net?

If so Then you are asking in the wrong NG.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Detecting selected account

am 11.01.2007 20:05:13 von aljamala

Evertjan. wrote:
> >>> > Does anyone know how to pass in a parameter from ASP to XSL?
> >>>
> >>> <% = myParameter %>
> >>>
> >> ummm, no!? thats a response.write
> >>
> >
> > So?
> >
>
> Ah, wait, perhaps you ment ASP.net?
>
> If so Then you are asking in the wrong NG.
>
I don't think so, I think you are just misunderstanding my question. I
want to pass the variable to an XSL stylesheet not for HTML rendering.

Re: Detecting selected account

am 12.01.2007 11:02:05 von exjxw.hannivoort

wrote on 11 jan 2007 in microsoft.public.inetserver.asp.general:

>
> Evertjan. wrote:
>> >>> > Does anyone know how to pass in a parameter from ASP to XSL?
>> >>>
>> >>> <% = myParameter %>
>> >>>
>> >> ummm, no!? thats a response.write
>> >>
>> >
>> > So?
>> >
>>
>> Ah, wait, perhaps you ment ASP.net?
>>
>> If so Then you are asking in the wrong NG.
>>
> I don't think so, I think you are just misunderstanding my question. I
> want to pass the variable to an XSL stylesheet not for HTML rendering.

Where are you using an .asp page then?

If you want a parameter in ASP it surely must be on an asp page, and that
asp page will send a stream to the user, and that stream contains your
stylesheet, or am I wrong?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)