#74175 - 22/02/2002 22:14
xsl stylesheet for hijack v206
|
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 (47 downloads)
|
Top
|
|
|
|
#74176 - 22/02/2002 22:19
Re: xsl stylesheet for hijack v206
[Re: theory]
|
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
^
|
Top
|
|
|
|
#74177 - 22/02/2002 22:24
Re: xsl stylesheet for hijack v206
[Re: dionysus]
|
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]
|
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 (265 downloads)
|
Top
|
|
|
|
#74179 - 22/02/2002 22:28
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
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]
|
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 (40 downloads)
|
Top
|
|
|
|
#74181 - 22/02/2002 22:33
Re: xsl stylesheet for hijack v206
[Re: theory]
|
veteran
Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
|
Good catch; accidentally uploaded an old version.. (1.51) of hijack...
-m
|
Top
|
|
|
|
#74182 - 22/02/2002 22:35
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
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 (281 downloads)
|
Top
|
|
|
|
#74183 - 22/02/2002 22:38
Re: xsl stylesheet for hijack v206
[Re: 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
|
Top
|
|
|
|
#74184 - 22/02/2002 22:43
Re: xsl stylesheet for hijack v206
[Re: dionysus]
|
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]
|
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]
|
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]
|
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]
|
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 (33 downloads)
|
Top
|
|
|
|
#74189 - 23/02/2002 04:37
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
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]
|
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]
|
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]
|
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]
|
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]
|
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]
|
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]
|
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 (27 downloads)
|
Top
|
|
|
|
#74197 - 23/02/2002 15:15
Re: xsl stylesheet for hijack v206
[Re: 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]
|
stranger
Registered: 03/02/2002
Posts: 25
|
|
Top
|
|
|
|
#74199 - 23/02/2002 18:48
Re: xsl stylesheet for hijack v206
[Re: 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 (26 downloads)
|
Top
|
|
|
|
#74200 - 24/02/2002 00:29
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
enthusiast
Registered: 16/02/2001
Posts: 373
Loc: Switzerland
|
cool! it looks great!
Many thanks....
|
Top
|
|
|
|
#74201 - 24/02/2002 02:39
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
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 (279 downloads)
|
Top
|
|
|
|
#74202 - 24/02/2002 02:43
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
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.
|
Top
|
|
|
|
#74204 - 24/02/2002 02:50
Re: xsl stylesheet for hijack v206
[Re: justinlarsen]
|
old hand
Registered: 31/12/2001
Posts: 1109
Loc: Petaluma, CA
|
untar the file to btw
_________________________
----
Justin Larsen
|
Top
|
|
|
|
#74205 - 24/02/2002 03:20
Re: xsl stylesheet for hijack v206
[Re: justinlarsen]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
I un-tar'ed the file and saw that it contained three files:
default.xsl
default.css
default.js
The first two (default.xsl default.css) were present in Charcoal's file. The last one (default.js) was not.
The first one (default.xsl), I placed in the root directory in place of Charcoal's file. I noticed that your version was significantly smaller, but did not check it in detail as to why.
The second one (default.css) was in Charcoal's "images" folder (based on his zipfile), so when I un-tar'd yours, I put it into the same place, replacing Charcoal's file. It, too, was significantly different in size.
The third files (default.js) did not exist in Charcoal's installation. Since charcoal has a similarly-named file in images (jscripts.js), I placed it there, assuming that's where it was supposed to go.
I get the same exact error on the Broceliande playlist.
I tried copying your two other files up to the root. Same result.
|
Top
|
|
|
|
#74206 - 24/02/2002 03:22
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
It's an encoding problem - as far as I've been able to test, we need
<?xml version="1.0" encoding="iso-8859-1"?>
instead of
<?xml version="1.0"?>
at the top of the generated xml-file.
I've sent a message to Mark about this, but I'm not sure it doesn't break anything else...
It's line 7121 in the v210 patch file if anyone else is set up to compile kernels...
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#74207 - 24/02/2002 06:26
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
carpal tunnel
Registered: 18/06/2001
Posts: 2504
Loc: Roma, Italy
|
I am! Sorry for the little feedback I am giving, I am just playing around with it and I am enjoying it totally! Great Job!!!
_________________________
= Taym = MK2a #040103216 * 100Gb *All/Colors* Radio * 3.0a11 * Hijack = taympeg
|
Top
|
|
|
|
#74208 - 24/02/2002 09:44
Re: xsl stylesheet for hijack v206
[Re: mtempsch]
|
member
Registered: 19/12/2001
Posts: 108
|
I agree, that encoding attribute needs to be added.
Chris
|
Top
|
|
|
|
#74209 - 24/02/2002 09:55
Re: xsl stylesheet for hijack v206
[Re: mtempsch]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
It's in v211 (now out).
-ml
|
Top
|
|
|
|
#74210 - 24/02/2002 10:10
Re: xsl stylesheet for hijack v206
[Re: mlord]
|
journeyman
Registered: 03/12/2000
Posts: 50
Loc: Berlin, Germany
|
Yeahhh and it is working, at least with german special characters like ä,ö,ü and so on that did not work before 2.11.
Great Job. Seems Display Server is getting oboslete......No much functionality that is not in Hijack + XML Sytleshet left. :-)
Personally i'm just missing the Systeminfo Page *hint* *hint*
:-)
janosch
|
Top
|
|
|
|
#74211 - 24/02/2002 10:15
Re: xsl stylesheet for hijack v206
[Re: mlord]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
Thank you!
Works great!
/Michael
_________________________
/Michael
|
Top
|
|
|
|
#74212 - 24/02/2002 10:37
Re: xsl stylesheet for hijack v206
[Re: mlord]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Okay, I still can't get it to work.
It no longer chokes on that playlist, but I still get this screen when I connect to http://empeg/drive0/fids/101?.xml :
My installation steps were as follows:
1) Remove previous-attempt XSL file and the entire contents of the "images" folder.
2) Install Hijack 211.
3) I unzipped the following file (from CharcoalGray99) to my hard disk: http://empeg.comms.net/files/72165-xmlwebinterface4.zip , using WinZip.
4) It created a "default.xsl" file and an "images" folder with a bunch of files.
5) I uploaded the xsl file to the root of the player and also uploaded the images directory, intact, to the player. Using IE 5.5's FTP-browser interface.
This page partially works. I can send commands to the player and the remote-control screen works. (By the way, I noticed the buttons on the GIF of the remote control screen are in the wrong order. Right is down and down is right. Is this a bug for everyone or just me?)
So what did I do wrong?
Attachments
72271-xml.gif (254 downloads)
|
Top
|
|
|
|
#74213 - 24/02/2002 10:51
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
member
Registered: 19/12/2001
Posts: 108
|
This looks to me like you might not be running MSXML 3.0.
Go here and see if it says you have MSXML2 v3.0 installed and the mode is Replace V3.
Also, can you post your xml?
|
Top
|
|
|
|
#74215 - 24/02/2002 10:57
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
pooh-bah
Registered: 02/06/2000
Posts: 1996
Loc: Gothenburg, Sweden
|
I don't trust IEs ftp capabilities further than I can throw them... You might want to try with a dedicated ftp client. I also used the 72165-xmlwebinterface4.zip file.
I've attached a zip with the files as taken from my empeg, you could give those a try too.
/Michael
Attachments
72285-test.zip (93 downloads)
_________________________
/Michael
|
Top
|
|
|
|
#74216 - 24/02/2002 11:08
Re: xsl stylesheet for hijack v206
[Re: crocklobster]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
The sniffer page confirms that my IE 5.5 installation is in fact an older version of XML. So that's the trouble.
I hate IE6 but I am afraid to downgrade on my work machine after installing it. On my home machine, I will not upgrade to IE6, however I will investigate options for upgrading my XML engine without changing the browser version.
Is the newer version of XML absolutely necessary for the functions you're trying to pull off? In my experience, it's always good to allow older browsers if at all possible. You get fewer questions like mine cropping up all the time.
Incidentally, I did some hand-editing of lines 24/25/26 in the default.xsl file and it now has the four buttons selecting correctly. I don't know if this is because the original file is out of order, or if my bad version of XML is the cause of it all. I will find out in a bit.
|
Top
|
|
|
|
#74217 - 24/02/2002 11:13
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
member
Registered: 19/12/2001
Posts: 108
|
Most stylesheets I've seen so far are using XSLT 1.0 specific stuff. Especially because Mozilla requires it. It's been mentioned before that it's highly recommended to upgrade the MSXML parser. There are links in other threads to good info about it.
The working draft spec is pretty limited. It doesn't support a lot of the XPATH functions that people are using (like position()).
You might also want to check the netcrucible msxml faq
|
Top
|
|
|
|
#74218 - 24/02/2002 11:14
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
enthusiast
Registered: 14/05/2001
Posts: 279
|
Is the newer version of XML absolutely necessary for the functions you're trying to pull off? In my experience, it's always good to allow older browsers if at all possible.
crocklobster showed a working draft version that worked with IE5 & IE5.5, I didn't write two versions because I don't have access to IE5 (I'm running XP)
Incidentally, I did some hand-editing of lines 24/25/26 in the default.xsl file and it now has the four buttons selecting correctly.
Thanks. My bug.
Tom
|
Top
|
|
|
|
#74219 - 24/02/2002 11:17
Re: xsl stylesheet for hijack v206
[Re: charcoalgray99]
|
member
Registered: 19/12/2001
Posts: 108
|
So far, all the things I've seen would be technically possible with the working draft spec, they would just be a lot more difficult. Especially the alternate row colouring. If someone else wants to maintain WD stylesheets, that's cool. It just won't be me.
|
Top
|
|
|
|
#74220 - 24/02/2002 11:40
Re: xsl stylesheet for hijack v206
[Re: tfabris]
|
carpal tunnel
Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
|
Okay, installing XML Parser 3.0 Service Pack 2 from Microsoft solved the problem.
I now get full support for the XML stuff. It rocks. Having the remote-control empeg (without VNC) in the upper right corner is quite nice. Basically, we're back to where we were with Displayserver, minus the Java. Coolness!
Loren: If you want to stick any of this stuff in the Hijack FAQ, you can use my screen shot (above) in the FAQ if you like. I don't know if you've been given permissions to upload screen shots to the riocar.org site, but if you have, they go into upload/faqpics.
The XML 3.0 parser is available from Microsoft. I went to their downloads site and did a search on "xml parser" to retrieve it. Painless. Direct link to the file needed is here, although I wouldn't necessarily put that link in the FAQ, you know MS's penchant for inducing web-rot by randomly changing their internal links on a weekly basis.
|
Top
|
|
|
|
#74221 - 24/02/2002 11:43
Re: xsl stylesheet for hijack v206
[Re: crocklobster]
|
carpal tunnel
Registered: 29/08/2000
Posts: 14496
Loc: Canada
|
My only "request" is that this stuff not be MS-browser specific. Meaning, I want to play too, and I run Linux. And on Linux, Mozilla is the main browser when it comes to XML.
Speaking of XML.. v212 of Hijack will probably break most of the existing hacks. See the releasenotes (new thread, soon) for details.
Cheers
-ml
|
Top
|
|
|
|
|
|