Unoffical empeg BBS

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

Page 1 of 2 1 2 >
Topic Options
#74175 - 22/02/2002 22:14 xsl stylesheet for hijack v206
theory
new poster

Registered: 03/01/2002
Posts: 49
Loc: Victoria, BC, Canada
Hey all, I've got a preliminary version of my style to make use of marks beautiful ?.xml hack.

Just untar and ungzip the attachment and pop it into your root directory on the empeg.

point your browser at http://[ip-address]/drive0/fids/101?.xml and take a gander. It's biased towards MSIE right now but I'll be changing that.

Some of the stuff doesn't work (i.e the more info link). It was inspired by marks original layout but I've added a nicer non-generic look to it. try it out and tell me what you think of it.

Cheers;
Theory


Attachments
72047-theory-style.tar.gz (45 downloads)


Top
#74176 - 22/02/2002 22:19 Re: xsl stylesheet for hijack v206 [Re: theory]
dionysus
veteran

Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
...doesn't work for me.. I'm using IE5, and fid 101 is on drive1:

http://empeg/drive1/fids/101?.xml

The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Invalid at the top level of the document. Line 1, Position 1

length=48
^

_________________________
http://mvgals.net - clublife, revisited.

Top
#74177 - 22/02/2002 22:24 Re: xsl stylesheet for hijack v206 [Re: dionysus]
theory
new poster

Registered: 03/01/2002
Posts: 49
Loc: Victoria, BC, Canada
what version of hijack are you using? I think there were xml issues with earlier versions.

Top
#74178 - 22/02/2002 22:26 Re: xsl stylesheet for hijack v206 [Re: theory]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
try it out and tell me what you think of it.

Sweet! I like the borderless table look.

I've been playing around with my own style also, it's not complete yet but I have a couple things working.

Tom



Attachments
72050-xmlwebinterface.jpg (264 downloads)


Top
#74179 - 22/02/2002 22:28 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
theory
new poster

Registered: 03/01/2002
Posts: 49
Loc: Victoria, BC, Canada
tres cool

mine looks like it's for simple folk compared to yours

Top
#74180 - 22/02/2002 22:32 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Heres my files if anyone wants to take a look.

I don't know anything about XML so the code may look nasty. Works with IE6.

Tom


Attachments
72053-xmlwebinterface.zip (39 downloads)


Top
#74181 - 22/02/2002 22:33 Re: xsl stylesheet for hijack v206 [Re: theory]
dionysus
veteran

Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
Good catch; accidentally uploaded an old version.. (1.51) of hijack...
-m
_________________________
http://mvgals.net - clublife, revisited.

Top
#74182 - 22/02/2002 22:35 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
theory
new poster

Registered: 03/01/2002
Posts: 49
Loc: Victoria, BC, Canada
If anyone's wondering what mine looks like, here's a pic



Attachments
72055-untitled.jpg (280 downloads)


Top
#74183 - 22/02/2002 22:38 Re: xsl stylesheet for hijack v206 [Re: dionysus]
dionysus
veteran

Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
Hmm.. doesn't work that well for files that're on the second drive though..
-mark
_________________________
http://mvgals.net - clublife, revisited.

Top
#74184 - 22/02/2002 22:43 Re: xsl stylesheet for hijack v206 [Re: dionysus]
theory
new poster

Registered: 03/01/2002
Posts: 49
Loc: Victoria, BC, Canada
hmmm....second drive eh? what happens? I just have a lowly single-drive empeg.

Top
#74185 - 22/02/2002 23:19 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
Awesome xsl.. one suggestion though, to get the Play link to work correctly, change line 91 to be:
<xsl:attribute name="href"><xsl:value-of select="@tagfid"/>?SERIAL=%23<xsl:value-of select="@fid"/>.xml</xsl:attribute>

Top
#74186 - 22/02/2002 23:25 Re: xsl stylesheet for hijack v206 [Re: dionysus]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
Hmm.. doesn't work that well for files that're on the second drive though..

I'm pretty sure that hijack doesn't care what drive things are on, and will search both for the files.. I know I only have one drive, but I can still access everything off of drive1..

Top
#74187 - 22/02/2002 23:42 Re: xsl stylesheet for hijack v206 [Re: Yang]
muzza
Pooh-Bah

Registered: 21/07/1999
Posts: 1765
Loc: Brisbane, Queensland, Australi...
Do we need a section on riocarDOTorg for xml styles or what!?
_________________________
-- Murray I What part of 'no' don't you understand? Is it the 'N', or the 'Zero'?

Top
#74188 - 23/02/2002 00:45 Re: xsl stylesheet for hijack v206 [Re: Yang]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Thanks! I was wondering what I messed up.

Here's a new version with that fix, and I also added image maps for the fascia buttons & knob.

Tom


Attachments
72071-xmlwebinterface2.zip (32 downloads)


Top
#74189 - 23/02/2002 04:37 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
Is it possible to put a Default;html file on Hijack Webroot like for Xsl option ?
_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#74190 - 23/02/2002 10:55 Re: xsl stylesheet for hijack v206 [Re: Nosferatu]
jnmunsey
member

Registered: 10/01/2002
Posts: 139
Loc: Houston, TX, USA
I got this error when navigating to one of my playlists:

An invalid character was found in text content. Error processing resource 'http://192.168.0.5/drive0/fids/aee1?.xml'. Line 5456, Position 17

I dunno what this means...

Top
#74191 - 23/02/2002 11:56 Re: xsl stylesheet for hijack v206 [Re: jnmunsey]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
If you post the XML that was outputted (view source) and the XSL document, someone might be able to figure it out.

Top
#74192 - 23/02/2002 12:35 Re: xsl stylesheet for hijack v206 [Re: Nosferatu]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Do you mean a redirecting index page that takes you directly to the xsl view?

Make an index.html and place it in the web root, and use this:

<meta http-equiv="refresh" content="0;url=/drive0/fids/101?.xml">

Top
#74193 - 23/02/2002 13:44 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
In fact, no.

I would like to make my own index.html file and customize it.

But what code to put into for songs , playlist etc ?
_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#74194 - 23/02/2002 13:55 Re: xsl stylesheet for hijack v206 [Re: jnmunsey]
mtempsch
pooh-bah

Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
I get the same on many of my playlists - looks to me like it is barfing on 8-bit characters. In my case I know i have ßüåäöÜÅÄÖ and probably have æøÆØ, as well as accented e's and i's in my tags...

/Michael
_________________________
/Michael

Top
#74195 - 23/02/2002 14:16 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
Gary
stranger

Registered: 03/02/2002
Posts: 25
Looks good. Works great!

Some thoughts/tweaks/ideas:

1. Hitting refresh causes the previous command to repeat. (Try selecting the 'pause' command from the drop-down menu. Then repeatedly hit refresh.) You might want to hit refresh to update the fascia display. Is there a solution for this?

2. How about an auto-update of the fascia display? Say once every 15 secs? Not too much to hammer on the network, but enough to see what's up on the empeg. User settable time?

3. There are separate play and pause commands, but they are really a single 'play/pause' command that undoes whatever the play or pause state is. If you want absolute play and pause, you can use serial commands, a la (in html):

<A href="http://empeg/dev/null?serial=%20"> <img alt="Play" border="0" src="icons/play.png"> </A>
<A href="http://empeg/dev/null?serial=W"> <img alt="Pause" border="0" src="icons/pause.png"> </A>

While we're at it, how about:

"http://empeg/dev/null?button=right"
"http://empeg/dev/null?button=left"

for Next track and Previous track...


4. On wide screens, the fascia shoots way off to the right of the screen, while everything else remains at the left. Maybe some limit would keep the design together...

Top
#74196 - 23/02/2002 15:04 Re: xsl stylesheet for hijack v206 [Re: Gary]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Thanks for the feedback.

Hitting refresh causes the previous command to repeat.

I'm not sure if there is a solution for this. If there is a better way to pass the commands someone please let me know.

How about an auto-update of the fascia display?

Good idea! Implemented...

There are separate play and pause commands

The command list was stolen from empegTray (Thanks John). I updated most of the comamnds with their symbolic names. I didn't know about the serial commands for play/pause, so if any other better command alternatives exist, let me know!

Maybe some limit would keep the design together

My understanding is if you hard code the table width, it won't resize at all. Is there a way to tell it "auto size until width is n pixels?"

Tom


Attachments
72133-xmlwebinterface3.zip (26 downloads)


Top
#74197 - 23/02/2002 15:15 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
I'd really like to see a Yahoo style navigation bar for the playlists. Although I don't believe this is possible with the current xml/hijack. This is what I was thinking of:

Playlists / Artists / Artist Name / Album

Navigation links like this would allow you to go back n level of playlists with a single click. Any comments on what it would take to do this?

Tom

Top
#74198 - 23/02/2002 18:00 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
Gary
stranger

Registered: 03/02/2002
Posts: 25

Top
#74199 - 23/02/2002 18:48 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Ok, I think this will be my last version for a little bit. How many people are using this?

Better image maps, new icons, cleaned up all of the code, fixed volup/voldown to work with hijack v210, alt row colors (Thanks Yang)

Tom


Attachments
72165-xmlwebinterface4.zip (25 downloads)


Top
#74200 - 24/02/2002 00:29 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
cool! it looks great!

Many thanks....
_________________________
crazymelki.com

Top
#74201 - 24/02/2002 02:39 Re: xsl stylesheet for hijack v206 [Re: charcoalgray99]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
How does one use these files (in this case I'm trying to use CharcoalGray99's zip file) on the player?

With Hijack 210, I placed the XSL file in the root directory of the player, and created an IMAGES subfolder and placed all the image files there.

When I open the root http://empeg or http://empeg/drive0/fids/101?.html files, it's just the same old stuff. When I click on the XSL, I get a PARTIAL implementation of what I expect to see, but it doesn't have the playlists and it's garbled. It looks like this:



I think it's neat how I can get the working screen display in the upper-right, though, without installing the remote-control app. But what else did I do wrong?


Attachments
72204-xslresult.gif (275 downloads)

_________________________
Tony Fabris

Top
#74202 - 24/02/2002 02:43 Re: xsl stylesheet for hijack v206 [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I think I may have found what I did wrong. But now there is another problem related to the escaping-out-of-non-ASCII-chars.

I realized I have to connect to:
http://empeg/drive0/fids/101?.xml

And that should work. However, I now get:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
An Invalid character was found in text content. Line 116, Position 17
<title>Brocel?de</title>
----------------^

This is because one of the playlists has a high-ascii character. The playlist is named:

Brocelïande

Note the double-dot over the i. That's what it choked on.
_________________________
Tony Fabris

Top
#74203 - 24/02/2002 02:49 Re: xsl stylesheet for hijack v206 [Re: tfabris]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
hey tony.. finally i get to help you downlaod the http://empeg.comms.net/files/72047-theory-style.tar.gz put that in your root, then replace the defualt.xsl with the new one charcoalgray99 made. and go to this http://[ip-address]/drive0/fids/101?.xml

tell me if that works
_________________________
---- Justin Larsen

Top
#74204 - 24/02/2002 02:50 Re: xsl stylesheet for hijack v206 [Re: justinlarsen]
justinlarsen
old hand

Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
untar the file to btw
_________________________
---- Justin Larsen

Top
Page 1 of 2 1 2 >