Discussion:
[Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Jérôme BERNARD
2002-01-29 16:02:02 UTC
Permalink
Hi,

I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.

I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.

We replace all href values with urlencode(the old href value) and we're
done.

Is anyone ok for such a fix?

If so I will start updating all the stylesheet and commit.


Jerome.
Carlos Quiroz
2002-01-29 16:13:04 UTC
Permalink
On Tuesday 29 January 2002 20:00, Jérôme BERNARD wrote:
Hi
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
Checking the specs now I discovered that this is indeed legal, never
thougt about before.
Post by Jérôme BERNARD
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
Where exactly do you want to put that? For instance to jump from the server
view to the mbean view? It will be perhaps necessary in many places
Post by Jérôme BERNARD
We replace all href values with urlencode(the old href value) and we're
done.
Is this XSL? Or are you using some extension?
Post by Jérôme BERNARD
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
I think is ok, but could you send me a copy beforehand
Post by Jérôme BERNARD
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Jérôme BERNARD
2002-01-29 16:50:04 UTC
Permalink
----- Original Message -----
From: "Carlos Quiroz" <***@welho.com>
To: <openjmx-***@lists.sourceforge.net>
Sent: Tuesday, January 29, 2002 7:09 PM
Subject: Re: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets


[...]
Post by Carlos Quiroz
Post by Jérôme BERNARD
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
Where exactly do you want to put that? For instance to jump from the server
view to the mbean view? It will be perhaps necessary in many places
Yes, this is where my first problem is but I guess that this must happen
somewhere else too.
Post by Carlos Quiroz
Post by Jérôme BERNARD
We replace all href values with urlencode(the old href value) and we're
done.
Is this XSL? Or are you using some extension?
Nope JavaScript :-)
Post by Carlos Quiroz
Post by Jérôme BERNARD
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
I think is ok, but could you send me a copy beforehand
I will send you tomorrow the updated common.xsl stylesheet and an update
serverbydomain.xsl.


Jerome.
Jérôme BERNARD
2002-01-29 16:41:03 UTC
Permalink
I forgot to precise that the method is implemented in JavaScript (so running
on client-side).

Jerome.

----- Original Message -----
From: "Jérôme BERNARD" <***@xtremejava.com>
To: <openjmx-***@lists.sourceforge.net>
Sent: Tuesday, January 29, 2002 7:00 PM
Subject: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Carlos Quiroz
2002-01-29 16:48:04 UTC
Permalink
Post by Jérôme BERNARD
I forgot to precise that the method is implemented in JavaScript (so
running on client-side).
I'm not a very big fan of JavaScript, specially when I think of usage with
non supporting browser. This happens to me when I can only ssh to a server
and I can only use Lynx.

I'd prefer some other solution
Post by Jérôme BERNARD
Jerome.
----- Original Message -----
Sent: Tuesday, January 29, 2002 7:00 PM
Subject: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Jérôme BERNARD
2002-01-29 16:54:02 UTC
Permalink
Another one would be to use some XSL:PI (processing instructions) but I
guess we would be "linked" to the XSL transformer which is problably not
even better.
Any other suggestion?

Jerome.


----- Original Message -----
From: "Carlos Quiroz" <***@welho.com>
To: <openjmx-***@lists.sourceforge.net>
Sent: Tuesday, January 29, 2002 7:44 PM
Subject: Re: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Post by Carlos Quiroz
Post by Jérôme BERNARD
I forgot to precise that the method is implemented in JavaScript (so
running on client-side).
I'm not a very big fan of JavaScript, specially when I think of usage with
non supporting browser. This happens to me when I can only ssh to a server
and I can only use Lynx.
I'd prefer some other solution
Post by Jérôme BERNARD
Jerome.
----- Original Message -----
Sent: Tuesday, January 29, 2002 7:00 PM
Subject: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Carlos Quiroz
2002-01-29 17:01:04 UTC
Permalink
Post by Jérôme BERNARD
Another one would be to use some XSL:PI (processing instructions) but I
guess we would be "linked" to the XSL transformer which is problably not
even better.
Any other suggestion?
We could use a xalan extension. That will tie us to xalan but we are already
tied since both saxon and JDK 1.4 keep throwing exception, and I was thinking
to use them anyway for handling custom data types.

I'll investigate this and if nothing else works you can commit the JavaScript
solution
Post by Jérôme BERNARD
Jerome.
----- Original Message -----
Sent: Tuesday, January 29, 2002 7:44 PM
Subject: Re: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Post by Carlos Quiroz
Post by Jérôme BERNARD
I forgot to precise that the method is implemented in JavaScript (so
running on client-side).
I'm not a very big fan of JavaScript, specially when I think of usage
with non supporting browser. This happens to me when I can only ssh to a
server and I can only use Lynx.
I'd prefer some other solution
Post by Jérôme BERNARD
Jerome.
----- Original Message -----
Sent: Tuesday, January 29, 2002 7:00 PM
Subject: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we
can
Post by Carlos Quiroz
Post by Jérôme BERNARD
Post by Jérôme BERNARD
add a method in common.xsl (I called it urlencode) that encodes
properly
Post by Carlos Quiroz
Post by Jérôme BERNARD
Post by Jérôme BERNARD
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and
we're
Post by Carlos Quiroz
Post by Jérôme BERNARD
Post by Jérôme BERNARD
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Carlos Quiroz
2002-01-29 17:27:03 UTC
Permalink
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
How does this happen exactly? The XSLT requires that if output is set to html
href elements are escaped and that's what happens in my testing here. I'm
having a MBean called 'Http Adaptor:name=Http Adaptor' and the link works ok.

What XSLT processor are you using?
Post by Jérôme BERNARD
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Carlos Quiroz
2002-01-29 18:40:07 UTC
Permalink
Post by Jérôme BERNARD
Hi,
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
Hi I added one template which uses a xalan extension. It basically passes the
URL via URLEncode.encode(). This is better than using XSLT default output
becuse it warantees that some characters will be right encoded in particular
'&'

It is working with Konqueror and Mozilla (Linux) but it should be tested with
IE and Netscape in M$ Windows which I don't use

The big problem is that we are now stuck with xalan. Opinions? If this is ok
I can commit it ASAP
Post by Jérôme BERNARD
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Carlos Quiroz
2002-01-30 06:06:04 UTC
Permalink
Post by Jérôme BERNARD
Hi,
Hi I commited my solution. Please take a look and give me your comments
Regards
Post by Jérôme BERNARD
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Jérôme BERNARD
2002-01-30 06:43:03 UTC
Permalink
That's fine for me.
Thanks.

Jerome.
Post by Carlos Quiroz
Post by Jérôme BERNARD
Hi,
Hi I commited my solution. Please take a look and give me your comments
Regards
Post by Jérôme BERNARD
I have been experiencing problems with ObjectNames containing spaces.
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we can
add a method in common.xsl (I called it urlencode) that encodes properly
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and we're
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
Carlos Quiroz
2002-01-30 06:58:04 UTC
Permalink
-----Original Message-----
Sent: 30 January 2002 10:41
Subject: Re: [Openjmx-devel] Proposed bug fix in the XSLT stylesheets
That's fine for me.
Thanks.
Cool. I'll update the docs setting xalan as the highly and only
recommended XSLT processor.

We have to find every page that uses href="OBJECTNAME" and update it
Jerome.
Post by Carlos Quiroz
Post by Jérôme BERNARD
Hi,
Hi I commited my solution. Please take a look and give me your
comments
Post by Carlos Quiroz
Regards
Post by Jérôme BERNARD
I have been experiencing problems with ObjectNames containing
spaces.
Post by Carlos Quiroz
Post by Jérôme BERNARD
The way the XSTL stylesheets are built is a problem because the URL
produced are not valid.
I have found (and implemented) a "trick" in order to solve that: we
can
Post by Carlos Quiroz
Post by Jérôme BERNARD
add a method in common.xsl (I called it urlencode) that encodes
properly
Post by Carlos Quiroz
Post by Jérôme BERNARD
the URL and do a window.location to this newly created url.
We replace all href values with urlencode(the old href value) and
we're
Post by Carlos Quiroz
Post by Jérôme BERNARD
done.
Is anyone ok for such a fix?
If so I will start updating all the stylesheet and commit.
Jerome.
_______________________________________________
Openjmx-devel mailing list
https://lists.sourceforge.net/lists/listinfo/openjmx-devel
Loading...