Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 2 of 3 < 1 2 3 >
Topic Options
#77238 - 06/03/2002 03:34 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
jane
enthusiast

Registered: 10/10/2000
Posts: 350
Loc: Copenhagen SW, Denmark
I guess you would get the same result with
<pre> </pre>

and no &amp;s

Marius (Escort Cab + Mark II)

Top
#77239 - 06/03/2002 07:17 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Mozilla renders empty cells just fine, thanks.

I belive IE will also do so, so long as the header line across the top is filled in (which it is).

&amp;nbsp is not valid HTML, unless recursively parsed. The only browser I know of that recursively parses it it IE. Lets use coding here that is not manufacturer-specific, please.

If I cannot view the output from Hijack in Linux, I'll just eventually remove the feature.

Cheers

Top
#77240 - 06/03/2002 09:42 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
Which things need this? Perhaps it's more appropriate to get khttpd to return a 204 (no data) response for those links?
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#77241 - 06/03/2002 10:00 Re: charcoalgray99's xsl stylesheet v1.0 [Re: tms13]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I'll add a "NODATA" parameter to Hijack v232, as in:

http://my.empeg/whatever?NODATA+anythingelse..


EDIT: original post said "NORESPONSE" .. now changed to "NODATA".


Edited by mlord (06/03/2002 10:02)

Top
#77242 - 06/03/2002 11:22 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31594
Loc: Seattle, WA
Yep, just edit the value in the default.js file. I plan to make this configurable too, like the display color.

When I did that (admittedly, several versions ago, not lately), I could increase the speed of the updates, but it was still not fast enough for my tastes. There seemed to be an upper limit to the refresh speed, about 1 per second.

I was hoping to get the speed up to about four per second so that remote menu operations felt more realistic.

Is this possible to do, or is it a limit due to the frequency that the PNG graphic on the player is updated? How does that work?
_________________________
Tony Fabris

Top
#77243 - 06/03/2002 12:00 Re: charcoalgray99's xsl stylesheet v1.0 [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
The graphic is updated on demand, quite quickly. I think the EmpVNC uses it for pretty-much real-time remote display. In fact, plugging the VNC java applet in place of the static graphics would be awesome..
just requires the VNC server to be installed.

How about an option to select VNC for the display & front panel controls?

Top
#77244 - 06/03/2002 16:40 Hijack v232: NODATA [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, Hijack v232 is now available, with the aformentioned NODATA flag implemented for khttpd. I've also removed the "play_count", "skipped_count", and "last_played" fields from the XML, since they are just an invalid byproduct of an emptool bug.

Cheers


Edited by mlord (06/03/2002 16:40)

Top
#77245 - 06/03/2002 16:46 Re: Hijack v232: NODATA [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Oh.. I just noticed my prior post about NODATA had an invalid example, so here goes again:

http://my.empeg/whatever?NODATA&anythingelse..
or a real life one:

http://my.empeg/?FID=101&EXT=.htm&NODATA
or this:

http://empeg/?NODATA
The last example probably being the most useful for the XSL template work.

Cheers


Edited by mlord (06/03/2002 16:48)

Top
#77246 - 06/03/2002 17:02 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Here's what results in IE without the non-breaking spaces:



I also tried the <pre> </pre> thing without any luck. Mozilla displays the empty cells correctly, I guess the problem I was talking about before was specific to Netscape 4.x

I'll continue to experiment, I'm not giving up at all. I really appreciate the feedback and suggestions.

If I cannot view the output from Hijack in Linux, I'll just eventually remove the feature.

Why would you want to do that? There are plenty of people who have found this useful. I’m doing this in my spare time. I’m sure you can understand if Mozilla compatibility is not the highest priority in my life right now.

Tom


Attachments
76318-nonbsp.gif (215 downloads)


Top
#77247 - 06/03/2002 17:07 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Well, perpetuating products from a (convicted criminal) monopolist isn't exactly a priority of mine right now, either.

But I'm not in a big rush to remove anything yet, as long as someday it will work for me. Hijack is something for use on my player, and things that don't work for me don't get left in there forever.

Keep up the good effort. I'm sure we'll conquer it someday.

Cheers

Top
#77248 - 06/03/2002 17:10 Re: Hijack v232: NODATA [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
http://empeg/?NODATA
The last example probably being the most useful for the XSL template work.


Thanks, I have this working, and it will be in the next version.

Mozilla still doesn't seem to respond to the onmouseup/onmousedown however...

Tom

Top
#77249 - 06/03/2002 17:18 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Ok, I managed to get around the &nbsp; issue by just using a 1x1 clear gif as a placeholder instead.

Tom

Top
#77250 - 06/03/2002 17:27 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
How about an option to select VNC for the display & front panel controls?

I'm still not sure what the best solution is for this. Obviously with an option, we could satisfy everyone, so I will probably take that route.

Tom

Top
#77251 - 06/03/2002 17:30 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Devious, very devious.

Do you perchance use junkbuster? (a variant of it does something similar with banner ads)

Top
#77252 - 06/03/2002 17:34 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Do you perchance use junkbuster?

No, I don't.

Tom

Top
#77253 - 06/03/2002 17:39 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Just so I can stop feeling singled out. I'd like to point out that the other stylesheets don't work in Mozilla either

Tom

Top
#77254 - 06/03/2002 17:45 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Yeah, but yours is the best!

-ml

Top
#77255 - 07/03/2002 00:07 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Well, perpetuating products from a (convicted criminal) monopolist isn't exactly a priority of mine right now, either

That ironic, as I'm pretty sure that "feature" crept into IE to make it behave more like Netscape, which used to have real problems with empty table cells...

_________________________
Remind me to change my signature to something more interesting someday

Top
#77256 - 07/03/2002 03:20 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
maybe you can program 2 style scripts one for ie and one for mozilla just to satify the world.. im getting board and thinking about style sheetin' myself
_________________________
---- Justin Larsen

Top
#77257 - 07/03/2002 10:46 Suggestion for XSL stylesheet v1.1... [Re: charcoalgray99]
ClownBurner
member

Registered: 05/09/2000
Posts: 174
Loc: Irvine, CA USA
It would be lovely to have a little box on the home page with current track info (Source, Artist, Track name, etc) in case we don't have an info mode displayed on the screen. That would almost be like having Info:Track and Visual:Whatever up at the same time! Neet! ;-)

I'd do it myself but I haven't even started with X?L yet...
_________________________
_____________ James Mancini

Top
#77258 - 07/03/2002 12:07 Re: Suggestion for XSL stylesheet v1.1... [Re: ClownBurner]
Terminator
old hand

Registered: 12/01/2000
Posts: 1079
Loc: Dallas, TX
Yeah I think he is working on that now. How do you get that information off the player though?

Sean

Top
#77259 - 07/03/2002 12:48 Re: Suggestion for XSL stylesheet v1.1... [Re: Terminator]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
/proc/empeg_notify

Top
#77260 - 07/03/2002 12:50 Re: Suggestion for XSL stylesheet v1.1... [Re: mlord]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
mark your so smart..
_________________________
---- Justin Larsen

Top
#77261 - 07/03/2002 13:13 Re: Suggestion for XSL stylesheet v1.1... [Re: mlord]
Terminator
old hand

Registered: 12/01/2000
Posts: 1079
Loc: Dallas, TX
Nothing comes up in my web browser when I try that. Im just looking at a blank page. Am I missing something obvious here? Do I have to have notify enabled in config.ini?

edit: nevermind, i figured it out.

Thx,
Sean


Edited by Terminator (07/03/2002 13:20)

Top
#77262 - 09/03/2002 12:36 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
Fogduck
member

Registered: 06/06/2000
Posts: 199
Loc: BC
Excellent work, CG99!

I know its a work-in-progress, but I'll have to resort to a simpler XSL implementation as I can't expect all my MSIE users to have to upgrade just to use it.

We worked up some complex web-forms using XSL at work that supported both Moz(4+)/IE(5+) -- if I rework your design to be less OS+browser+browser_version+XML_version specific would you mind?

Also, are you using an MS tool to cook your XSL, or are you creating/working it by hand?
_________________________
- - - MK2 #141 12GB Queue #5723 (SOLD) MK2a 30GB + grn + tuner + blk empeg case

Top
#77263 - 09/03/2002 14:11 Re: charcoalgray99's xsl stylesheet v1.0 [Re: Fogduck]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
See my new post for a list of things I need help with. I would not mind at all.

Tom

Top
#77264 - 10/03/2002 18:08 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
In reply to:

&amp;nbsp is not valid HTML, unless recursively parsed




Couple of things. How is that not valid HTML? It may not mean anything specific in HTML, but that doesn't make it invalid. (Note: Haven't checked that it's valid XHTML, still think it would be, but there's nothing that makes it invalid HTML).

I'm not sure what you mean recursively parsed. I mean, I understand the english, and the programming concept, but really, isn't this what the browser is doing when displaying stylesheet-applied xml? It reads in the xml, requests the stylesheet, produces an output from that source and stylesheet, and then, since it's HTML (or XHTML in the case of Mozilla), would parse and render that for display. Here, one source becomes another, which is then rendered for display, so in a way, it can be thought of as recursion, but it's two seperate parsers doing the work.

The &amp;nbsp; isn't HTML anyway it's XSLT, which, by extension is XML and that is also valid XML. An XSLT 1.0 compliant parser should output &nbsp; after parsing that. Of course, in HTML the &nbsp; is a named entity which will insert a non-breaking space.

It would be the same thing (but is a little shortcut) to <xsl:text disable-output-escaping="true">&nbsp;</xsl:text>.

Does Mozilla not support the appearance of &nbsp; in their html docs? I might have to go ahead and install that on a machine.

Chris

Top
#77265 - 10/03/2002 18:14 Re: charcoalgray99's xsl stylesheet v1.0 [Re: charcoalgray99]
crocklobster
member

Registered: 19/12/2001
Posts: 108
In reply to:

Ok, I managed to get around the &nbsp; issue by just using a 1x1 clear gif as a placeholder instead




The other thing you might try (I will if I get a chance) is &#xa0; This works for outputting a space with a working draft XSLT compliant parser. In fact, I think it was the only way to make that work in IE5 5/5 w/MSXML2, so it might be better for Mozilla. If that works, everyone saves requests for that little gif.

I know, not a big deal, but using blank gifs for layout and display is so, 1997.

Chris

Top
#77266 - 10/03/2002 18:26 Re: charcoalgray99's xsl stylesheet v1.0 [Re: crocklobster]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Nice. Mozilla liked <xsl:text disable-output-escaping="yes">&#xa0;</xsl:text>

And since your more of a XML guru then me, look at my other thread (v1.1) and see what I need help with!

Tom

Top
#77267 - 11/03/2002 16:36 Re: charcoalgray99's xsl stylesheet v1.0 [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
In reply to:


&amp;nbsp is not valid HTML, unless recursively parsed. The only browser I know of that recursively parses it it IE. Lets use coding here that is not manufacturer-specific, please.

If I cannot view the output from Hijack in Linux, I'll just eventually remove the feature.




Not to pick a fight, because I thought the last one was ridiculous... Also, I'm going to go ahead and install Mozilla on a machine to see what the problems are. Of course, this isn't even my stylesheet (or browser of choice) that I'm going to look at.

That all being said, who ever said we needed one stylesheet to work the same exact way on every browser on the planet and have every feature work exactly the same way? I thought the idea was to be able to allow people to view the output the way they wanted to. If that includes manufacturer specific goodies, good for them. At the same time, maybe someone wants a much simpler interface, that's fine too. Maybe someone wants no CSS or js at all, done. Maybe someone needs to put weird code in to make it look better on one platform as compared to another, that should be okay too. It's the XML that's iniversal, the stylesheet shouldn't have to be. Yes, it has to adhere to standards, but the output should be able to be specific to whatever the browser of choice is if the stylesheet author so chooses.

Not sure why you would ever contemplate removing the xml interface because someone made (or might make) a stylesheet that doesn't work right in Mozilla. There's nothing stopping anyone from writing a good or better stylesheet for Mozilla.

Gotta say too, if it's a threat, that's kind of lame. Not that you haven't shown you can take new versions away. On the other hand everything in Hijack that I use was done like 20 versions ago, and I've shown my appreciation for it in more than just words. Maybe others need to do the same.

Chris

Top
Page 2 of 3 < 1 2 3 >