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
#73708 - 22/02/2002 10:13 Re: Hijack v202: First crack at XML [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Here are the updated stylesheets to reflect the root tag being named <playlist>


Attachments
71857-empegxml.zip (24 downloads)


Top
#73709 - 22/02/2002 10:18 Re: Hijack v202: First crack at XML [Re: guardian__J]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Yes, I didn't know that '&' was valid in genre -- v205 will handle it there also.

-ml

Top
#73710 - 22/02/2002 10:21 Re: Hijack v202: First crack at XML [Re: mlord]
guardian__J
enthusiast

Registered: 28/01/2002
Posts: 265
Loc: MI, USA
THANK YOU!!!

what account should I use to paypal with a CC?
_________________________
guardian__J
MKIIa 20g Smoke

Top
#73711 - 22/02/2002 10:30 Re: Hijack v202: First crack at XML [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
So far, this is totally awesome. I'm thinking up some ideas for hosting stylesheets and a navigation scheme where people would be able to test stylesheets at their whim.

For what I'm thinking, the path to the current stylesheet, passed in with the xml would be great. Here's the current problem:

If I put in http://10.1.5.30/drive0/fids/101?STYLE=/default%20-%20alt%20colours%20-%201.0.xsl.xml it works fine on that playlist. The problem is all the <a> tags that navigate to other playlists assume that it can just send a request for say, http://10.1.5.30/drive0/fids/7e21?.xml and that only works if it's the defaulted stylesheet. If you could send down, as an attribute on the <playlist> tag, the path and name of the current stylesheet, I could use that to build the links to the other playlists.

So, if the stylesheet requested is the "default" one, send
<playlist stylesheet="" ....>
if the stylesheet has been specified send down
<playlist stylesheet="STYLE=/path/stylesheetname.xsl" ...>

What do you think?

Chris

Top
#73712 - 22/02/2002 10:30 Re: Hijack v202: First crack at XML [Re: guardian__J]
mlord
carpal tunnel

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

Top
#73713 - 22/02/2002 10:33 Re: Hijack v202: First crack at XML [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay. In v205 (later this afternoon).

Also, what mime-type should the httpd use when serving the .xsl file? It currently sends "text/xsl", but the info I have from Sun suggests "text/html". Neither of these work with Mozilla, though.

Mmm..

Top
#73714 - 22/02/2002 10:37 Re: Hijack v202: First crack at XML [Re: crocklobster]
guardian__J
enthusiast

Registered: 28/01/2002
Posts: 265
Loc: MI, USA
crocklobster:
I was wondering if there is a way for the xml/xsl to determine which option are available and not display them when they are not. I thinking about how Hijack used to hide play and tag when those options where unavailable...is there any way to accomplish this with the current scheme?
_________________________
guardian__J
MKIIa 20g Smoke

Top
#73715 - 22/02/2002 10:38 Re: Hijack v202: First crack at XML [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Just to make my life easier, the stylesheet="xxxxxxx" thingie will always be present, even for the default xsl. Okay?

Top
#73716 - 22/02/2002 10:40 Re: Hijack v202: First crack at XML [Re: guardian__J]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I could add them as top level tags, if that would help. As in


<playlist files="0" commands="1" stylesheet="/default.xsl" ...>


Edited by mlord (22/02/2002 10:43)

Top
#73717 - 22/02/2002 10:48 Re: Hijack v202: First crack at XML [Re: mlord]
guardian__J
enthusiast

Registered: 28/01/2002
Posts: 265
Loc: MI, USA
I think that sounds nice :-)
_________________________
guardian__J
MKIIa 20g Smoke

Top
#73718 - 22/02/2002 10:52 Re: Hijack v202: First crack at XML [Re: guardian__J]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Okay, something like that is in v205, due out shortly.
<playlist allow_files="0" allow_commands="1" stylesheet="/default.xsl" ...>

Top
#73719 - 22/02/2002 10:57 Re: Hijack v202: First crack at XML [Re: mlord]
guardian__J
enthusiast

Registered: 28/01/2002
Posts: 265
Loc: MI, USA
can't wait to play with that...

hey crocklobster, can you incorporate the use of it into your "officially released" xsl's?

EDIT: hey...205 is out..


Edited by guardian__J (22/02/2002 10:58)
_________________________
guardian__J
MKIIa 20g Smoke

Top
#73720 - 22/02/2002 11:01 Hijack v205 Released [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Yup, v205 is there. The only change was more tweaking of the .xml/.xsl formatting/handling, as per discussions in this thread.

Cheers

Top
#73721 - 22/02/2002 12:14 Re: Hijack v202: First crack at XML [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Actually, it's cool if the attribute is always there, it's just that it would be best if the original request was ?.xml for the attribute to by an empty string. What I was going to do was take the value of that attribute and just stick it in the current <a> tags. What I needed was for that attribute to be equal to the string between the "?" and the ".xml" part of the request.

Anyway, lemme download the latest, update the stylesheets, and I'll comment again.

Chris

Top
#73722 - 22/02/2002 14:03 Re: Hijack v202: First crack at XML [Re: crocklobster]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Okay, here are the updated stylesheets to support the security features of the config.ini settings. If commands are disabled, the "Play" links won't show, and if files are disabled, the titles of tunes are not links to those files.

I have to update them one more time with the change for coding the playlist links correctly, based on the current stylesheet. Just waiting to see if Mark has any interest in making the value of the stylesheet attribute equal to the string between the "?" and the ".xml" of the http request.

It's not hard for me to deal with it the way that it is, it is another conditional I'll have to put in. I'll have to check for whether stylesheet="/default.xsl" or not and then make up my own link. Again, not a big deal, so if it's a pain to do it the other way, lemme know and I'll try to get this done tonight...but it is Friday night.

Chris


Attachments
71930-empegxml.zip (26 downloads)


Top
#73723 - 22/02/2002 14:21 Re: Hijack v202: First crack at XML [Re: crocklobster]
guardian__J
enthusiast

Registered: 28/01/2002
Posts: 265
Loc: MI, USA
thanks man...

btw: I had to change it to also remove the tags column...that's unavailable with files=0
_________________________
guardian__J
MKIIa 20g Smoke

Top
#73724 - 22/02/2002 14:30 Re: Hijack v202: First crack at XML [Re: guardian__J]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Doh!

Top
#73725 - 22/02/2002 16:46 Re: Hijack v202: First crack at XML [Re: guardian__J]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
I ahve the same problem with the caracter é and probably è à ê .

Can this be also considered ?
_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#73726 - 22/02/2002 17:26 Re: Hijack v202: First crack at XML [Re: Nosferatu]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Rather than get into a hundred or more special cases for escaping characters, is there not a more generic method that could be used here? Something like the HTML %20 (space) style of hex-encoding?

I think I tried %xx originally, only to see them displayed in the playlists from xml/xsl.

Remember, I don't know anything about xml/ssl here.

??

Top
#73727 - 22/02/2002 17:27 Re: Hijack v202: First crack at XML [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
I'm going to leave it as-is for now.

Okay?

Top
#73728 - 22/02/2002 17:34 Hijack v206: "Clock" popup. [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Hijack v206 is out.

The new feature-of-the-day is a virtual "Clock" button code, which can be bound to any button (or a popup menu) using the ir_translate features.

When "pressed", "Clock" causes a 4-second popup window to appear with the current time/date in it.

Note that since the Player software does not pass timezone information to the kernel, the time may appear wrong. To combat this, you can specify a time_offset=nnn in config.ini under [hijack. This offset is specified in minutes, and can be preceeded with a minus sign if need be. For example:

[hijack]
time_offset=-300 ; Eastern Standard Time (EST) Canada


Enjoy.

-ml

Top
#73729 - 22/02/2002 23:03 Re: Hijack v202: First crack at XML [Re: crocklobster]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
Alternating row colors can be done with a small bit of code btw:

<tr>
<xsl:attribute name="bgcolor">
<xsl:choose>
<xsl:when test = "(position() mod 2 =0)">lightblue</xsl:when>
<xsl:when test = "(position() mod 2 =1)">slate</xsl:when>
</xsl:choose>
</xsl:attribute>
...

Top
#73730 - 23/02/2002 06:23 Re: Hijack v202: First crack at XML [Re: Yang]
beaker
addict

Registered: 19/08/2000
Posts: 588
Loc: England
Ah yes, that's a bit neater than the code I stuck in there. I thought there must be a more elegant solution. As I said before I'm no expert at XML/XSLT.
_________________________
Marcus 32 gig MKII (various colours) & 30gig MKIIa

Top
#73731 - 23/02/2002 06:39 Re: Hijack v206: "Clock" popup. [Re: mlord]
jwickis
addict

Registered: 24/08/2000
Posts: 658
Loc: India
For some reason when I have Popup0 selected in redefinition I get nothing to happen (no clock) when I give the knob a quick press. What might I be doing wrong?

Top
#73732 - 23/02/2002 06:53 Re: Hijack v206: "Clock" popup. [Re: jwickis]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
PopUp0 does not have a "default" behaviour (anymore).
You have to define what you want it to do in config.ini, as in:

[ir_translate]
popup0=Clock,Info,Repeat,Shuffle,Visual


Cheers

Top
#73733 - 23/02/2002 07:01 Re: Hijack v206: "Clock" popup. [Re: mlord]
jwickis
addict

Registered: 24/08/2000
Posts: 658
Loc: India
Coolllllll works great now THANKS

Top
#73734 - 23/02/2002 07:55 Re: Hijack v206: "Clock" popup. [Re: jwickis]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14491
Loc: Canada
Good. But you got me thinking again, and so I've now released v207, which has a built-in default "PopUp0" -- you might now want to try commenting out the one you added (stick a ';' in front of it), to see what the default looks like.

Cheers

Top
#73735 - 23/02/2002 09:08 Re: Hijack v202: First crack at XML [Re: crocklobster]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
I am using now two stylesheets. one is named with default.xsl and the other is default-alt.xsl. As a starter page I did a index.html. I am pointing on this index.html to bought styles. What I have to to that I can use bought styles without changing the config.ini and reboot the Empeg?

Changing the code in the xsl? but how?
Other possibility?

Any ideas?

Thanks a lot for all your great work on this new XML aera.
_________________________
crazymelki.com

Top
#73736 - 23/02/2002 11:53 Re: Hijack v202: First crack at XML [Re: beaker]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
Heh, I just took what you had and played with it a bit. took me a couple tries to figure out that it doesn't like wrapping XLS statements around <td> blocks, but by looking at your code I figured it out.. Don't sell yourself short, all I know about XLS I learned from looking at your code..

Top
#73737 - 23/02/2002 16:41 Re: Hijack v206: "Clock" popup. [Re: mlord]
ellweber
member

Registered: 14/01/2002
Posts: 156
Loc: Saratoga, CA, USA
Nice capability, but it may be causing a slight problem.

I have:

"Analogue Clock" set as one of my "Favourite Visuals"
"KnobRight" translated to "Visulal+"
"Top.L" trasnslated to "Clock"

[ir_translate]
PopUp0=PopUp1,Shuffle,Repeat,KnobSeek
PopUp1=Artist,Album,Genre
KnobLeft=VolAdj.N,KnobLeft.U
KnobRight=Visual+.N,KnobRight.U
top.L=Clock

For Hijack 206 through 210 whenever KnobRight gets to the Analogue Clock display further right rotation causes a reboot!

Also, I am wondering how the Empeg keeps time. I notice there is now a time zone function in settings but it seems stuck on US-Alaska and I find I need an offset of -120 in [Hijack} to get to PST on the Hijack "Clock" display even though the Empeg time is already set to PST (which is -480 relative to GMT/UTC).

Further, when does the Empeg set the player software from the RTC? Last night it got off by about 20 minutes and only recovered after a reboot. Seems like it shouldn't get that far off unless the player doesn't recover time from the RTC after interruptions or it is creeping quite rapidly.

Lynn


Top
Page 2 of 3 < 1 2 3 >